Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 101.9 kB / 16.4 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 188.2 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2507/0.2507, allocations: 31.14 MB / 322.3 MB, free: 52 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001816, allocations: 67.89 kB / 447.5 MB, free: 1.484 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1066, allocations: 56.35 MB / 0.4921 GB, free: 9.148 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.007152/0.1138, allocations: 5.396 MB / 0.4973 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00113/0.115, allocations: 0.6112 MB / 0.4979 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.1152, allocations: 7.938 kB / 0.4979 GB, free: 3.105 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002267/0.1154, allocations: 79.27 kB / 0.498 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001799/0.1156, allocations: 71.38 kB / 0.4981 GB, free: 2.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004945/0.1161, allocations: 191.5 kB / 0.4983 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004964/0.1166, allocations: 459.1 kB / 0.4987 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003445/0.117, allocations: 234.1 kB / 0.4989 GB, free: 2.082 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002203/0.1172, allocations: 191.3 kB / 0.4991 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002517/0.1175, allocations: 199.1 kB / 0.4993 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.414e-05/0.1175, allocations: 44 kB / 0.4993 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.1176, allocations: 48 kB / 0.4994 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.1178, allocations: 107.7 kB / 0.4995 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002182/0.118, allocations: 218.8 kB / 0.4997 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005219/0.1185, allocations: 462.1 kB / 0.5001 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1185, allocations: 0 / 0.5001 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1186, allocations: 0 / 0.5001 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.1186, allocations: 0 / 0.5001 GB, free: 0.8359 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001138/0.1197, allocations: 0.6978 MB / 0.5008 GB, free: 92 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.1197, allocations: 8.031 kB / 0.5008 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000285/0.12, allocations: 68.62 kB / 0.5009 GB, free: 16 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2052/0.3253, allocations: 328.9 kB / 0.5012 GB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.001e-05/0.3253, allocations: 45.06 kB / 0.5013 GB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.339e-05/0.3254, allocations: 43.41 kB / 0.5013 GB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007201/0.3261, allocations: 418.1 kB / 0.5017 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.3262, allocations: 1.219 kB / 0.5017 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.553e-05/0.3262, allocations: 18.97 kB / 0.5017 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.3262, allocations: 15.08 kB / 0.5017 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004823/0.3267, allocations: 247.1 kB / 0.502 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.3284, allocations: 1.658 MB / 0.5036 GB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004858/0.3289, allocations: 253 kB / 0.5038 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.3291, allocations: 161.8 kB / 0.504 GB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.3291, allocations: 6.281 kB / 0.504 GB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.3292, allocations: 43.03 kB / 0.504 GB, free: 11.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.934e-06/0.3292, allocations: 0 / 0.504 GB, free: 11.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007287/0.3299, allocations: 351.1 kB / 0.5044 GB, free: 11.62 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.33, allocations: 159 kB / 0.5045 GB, free: 11.44 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002414/0.3302, allocations: 273.6 kB / 0.5048 GB, free: 11.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.389e-05/0.3303, allocations: 38.73 kB / 0.5048 GB, free: 11.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.3304, allocations: 221.9 kB / 0.505 GB, free: 11.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.186e-05/0.3304, allocations: 92.5 kB / 0.5051 GB, free: 11.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.3306, allocations: 101.8 kB / 0.5052 GB, free: 11.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.859e-05/0.3306, allocations: 347.8 kB / 0.5055 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002791/0.3309, allocations: 137.8 kB / 0.5057 GB, free: 10.78 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003071/0.3312, allocations: 243.8 kB / 0.5059 GB, free: 10.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004544/0.3317, allocations: 351.2 kB / 0.5062 GB, free: 10.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.3317, allocations: 5.5 kB / 0.5062 GB, free: 10.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007181/0.3324, allocations: 446.7 kB / 0.5067 GB, free: 10.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.3324, allocations: 7.062 kB / 0.5067 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3325, allocations: 3.562 kB / 0.5067 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.3325, allocations: 5.25 kB / 0.5067 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.3327, allocations: 73.19 kB / 0.5068 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.3327, allocations: 8.094 kB / 0.5068 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.333, allocations: 59.73 kB / 0.5068 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.26e-05/0.333, allocations: 19 kB / 0.5068 GB, free: 10.46 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.inventory.inflow.stopInflow,$PRE.inventory.outflow.stopInflow,$PRE.producing.cloud.massPort.stopInflow,$PRE.producing.cloud.massPort.stopOutflow,$PRE.installedBase.inflow.stopInflow,$PRE.installedBase.inflow.stopOutflow,$PRE.cloud1.massPort.stopInflow,$PRE.cloud1.massPort.stopOutflow,cloud1.massPort.stopOutflow,cloud1.massPort.stopInflow,installedBase.inflow.stopInflow,producing.cloud.massPort.stopOutflow,inventory.inflow.stopInflow,installedBase.inflow.stopOutflow,producing.cloud.massPort.stopInflow,inventory.outflow.stopInflow,shipping.portA.stopInflow,producing.growing.portA.stopInflow,shipping.portB.stopOutflow,producing.growing.useB_rate,$PRE.producing.growing.useB_rate,producing.growing.useA_rate,$PRE.producing.growing.useA_rate,producing.growing.portB.stopOutflow,producing.growing.portB.stopInflow,producing.growing.portA.stopOutflow,shipping.useB_rate,$PRE.shipping.useB_rate,shipping.useA_rate,$PRE.shipping.useA_rate,shipping.portB.stopInflow,shipping.portA.stopOutflow,inventory.outflow.stopOutflow,$PRE.inventory.outflow.stopOutflow,inventory.inflow.stopOutflow,$PRE.inventory.inflow.stopOutflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001479/0.3332, allocations: 192.2 kB / 0.507 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.395e-05/0.3333, allocations: 25.14 kB / 0.507 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.103e-05/0.3333, allocations: 36.86 kB / 0.5071 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.3333, allocations: 9.078 kB / 0.5071 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.3334, allocations: 1.188 kB / 0.5071 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3334, allocations: 2.359 kB / 0.5071 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001299/0.3347, allocations: 1.184 MB / 0.5082 GB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.3347, allocations: 3.375 kB / 0.5083 GB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001879/0.3349, allocations: 42.89 kB / 0.5083 GB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.79e-06/0.3349, allocations: 4.719 kB / 0.5083 GB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.517e-05/0.3349, allocations: 14.42 kB / 0.5083 GB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.118e-05/0.3349, allocations: 9.203 kB / 0.5083 GB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3349, allocations: 3.344 kB / 0.5083 GB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006678/0.3356, allocations: 0.5336 MB / 0.5088 GB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.3357, allocations: 132.2 kB / 0.509 GB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.941e-05/0.3358, allocations: 11.03 kB / 0.509 GB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.336, allocations: 20.95 kB / 0.509 GB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.06e-05/0.3361, allocations: 46.11 kB / 0.509 GB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.3361, allocations: 13.2 kB / 0.5091 GB, free: 9.188 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001518/0.3362, allocations: 177.7 kB / 0.5092 GB, free: 9.105 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3362, allocations: 0 / 0.5092 GB, free: 9.105 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003927/0.3366, allocations: 91.03 kB / 0.5093 GB, free: 9.094 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 5 (inventory.x,installedBase.x_hidden[1],installedBase.x_hidden[2],installedBase.x_hidden[3],installedBase.x_hidden[4]) * Number of discrete variables: 14 (inventory.outflow.stopOutflow,producing.growing.portB.stopOutflow,inventory.inflow.stopOutflow,shipping.portA.stopOutflow,shipping.useA_rate,shipping.portA.stopInflow,producing.growing.portA.stopInflow,shipping.portB.stopOutflow,producing.growing.useB_rate,producing.growing.portB.stopInflow,producing.growing.portA.stopOutflow,shipping.useB_rate,shipping.portB.stopInflow,producing.growing.useA_rate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001011/0.3367, allocations: 121.4 kB / 0.5094 GB, free: 8.996 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006176/0.3374, allocations: 324.4 kB / 0.5097 GB, free: 8.973 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3374, allocations: 1.281 kB / 0.5097 GB, free: 8.973 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002651/0.3377, allocations: 142.3 kB / 0.5099 GB, free: 8.957 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005339/0.3382, allocations: 82.62 kB / 0.51 GB, free: 8.949 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.3392, allocations: 0.7728 MB / 0.5107 GB, free: 8.473 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.3395, allocations: 0.7891 MB / 0.5115 GB, free: 7.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.664e-05/0.3396, allocations: 33.77 kB / 0.5115 GB, free: 7.762 MB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3396, allocations: 0 / 0.5115 GB, free: 7.762 MB / 382.1 MB Notification: Performance of Templates: time 0.006628/0.3462, allocations: 4.333 MB / 0.5157 GB, free: 7.367 MB / 382.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.makefile (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)