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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009362/0.0009362, allocations: 81.95 kB / 19.87 MB, free: 4.621 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000942/0.000942, allocations: 169.7 kB / 23.27 MB, free: 1.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1/1, allocations: 177.1 MB / 203.7 MB, free: 5.527 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1203/0.1203, allocations: 24.15 MB / 284.4 MB, free: 5.129 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 361.6 MB, free: 3.645 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.114e-05/2.278e-05, allocations: 2.312 kB / 361.6 MB, free: 3.641 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005953/0.005976, allocations: 5.228 MB / 366.9 MB, free: 14.38 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.00772, allocations: 0.6231 MB / 367.5 MB, free: 13.76 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003407/0.008061, allocations: 11.94 kB / 367.5 MB, free: 13.75 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002989/0.00836, allocations: 79.27 kB / 367.6 MB, free: 13.67 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003067/0.008667, allocations: 75.3 kB / 367.7 MB, free: 13.59 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007359/0.009402, allocations: 191.4 kB / 367.8 MB, free: 13.41 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006468/0.01005, allocations: 474.9 kB / 368.3 MB, free: 12.94 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000331/0.01038, allocations: 154.9 kB / 368.5 MB, free: 12.79 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004805/0.01086, allocations: 299.3 kB / 368.7 MB, free: 12.5 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002851/0.01115, allocations: 135.6 kB / 368.9 MB, free: 12.37 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.418e-05/0.01122, allocations: 44 kB / 368.9 MB, free: 12.32 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.01133, allocations: 47.94 kB / 369 MB, free: 12.28 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.01144, allocations: 107.6 kB / 369.1 MB, free: 12.17 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.01159, allocations: 135.7 kB / 369.2 MB, free: 12.04 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004436/0.01204, allocations: 302.8 kB / 369.5 MB, free: 11.74 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.01204, allocations: 0 / 369.5 MB, free: 11.74 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.01204, allocations: 0 / 369.5 MB, free: 11.74 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.01205, allocations: 7.938 kB / 369.5 MB, free: 11.73 MB / 346.7 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.001016/0.01306, allocations: 0.7025 MB / 370.2 MB, free: 11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.0131, allocations: 12.75 kB / 370.2 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000212/0.01331, allocations: 92.62 kB / 370.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003132/0.01363, allocations: 298.2 kB / 370.6 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.644e-05/0.01366, allocations: 37.38 kB / 370.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.091e-05/0.01372, allocations: 52.31 kB / 370.7 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000362/0.01408, allocations: 394.3 kB / 371.1 MB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.01409, allocations: 3.938 kB / 371.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.988e-05/0.01411, allocations: 16 kB / 371.1 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-06/0.01412, allocations: 12 kB / 371.1 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00013/0.01425, allocations: 110.8 kB / 371.2 MB, free: 9.906 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001229/0.01548, allocations: 1.744 MB / 373 MB, free: 8.098 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001914/0.01567, allocations: 184.6 kB / 373.1 MB, free: 7.867 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.315e-05/0.01574, allocations: 90.73 kB / 373.2 MB, free: 7.762 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.309e-05/0.01575, allocations: 8 kB / 373.2 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.01578, allocations: 45.33 kB / 373.3 MB, free: 7.699 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 1.673e-06/0.01578, allocations: 0 / 373.3 MB, free: 7.699 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.0002898/0.01607, allocations: 188.2 kB / 373.5 MB, free: 7.512 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.01613, allocations: 158.2 kB / 373.6 MB, free: 7.32 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001821/0.01632, allocations: 312 kB / 373.9 MB, free: 7 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.895e-05/0.01634, allocations: 38.08 kB / 374 MB, free: 6.957 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.01647, allocations: 283.2 kB / 374.2 MB, free: 6.676 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.017e-05/0.01652, allocations: 83.34 kB / 374.3 MB, free: 6.594 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.01663, allocations: 111.7 kB / 374.4 MB, free: 6.477 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.01677, allocations: 0.5157 MB / 374.9 MB, free: 5.949 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.643e-05/0.01686, allocations: 48.95 kB / 375 MB, free: 5.898 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.01702, allocations: 260.9 kB / 375.2 MB, free: 5.566 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002317/0.01725, allocations: 302 kB / 375.5 MB, free: 5.195 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.01725, allocations: 0 / 375.5 MB, free: 5.195 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003316/0.01758, allocations: 325.4 kB / 375.9 MB, free: 4.871 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.0176, allocations: 9.656 kB / 375.9 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.01761, allocations: 4 kB / 375.9 MB, free: 4.859 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.01763, allocations: 8 kB / 375.9 MB, free: 4.852 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.01776, allocations: 59.84 kB / 375.9 MB, free: 4.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.01776, allocations: 11.94 kB / 376 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.947e-05/0.01786, allocations: 47.62 kB / 376 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.098e-05/0.01788, allocations: 19.98 kB / 376 MB, free: 4.715 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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,inventory.outflow.stopInflow,producing.cloud.massPort.stopInflow,installedBase.inflow.stopOutflow,inventory.inflow.stopInflow,producing.cloud.massPort.stopOutflow,installedBase.inflow.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,cloud1.massPort.stopInflow,cloud1.massPort.stopOutflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * 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.0001446/0.01803, allocations: 213.6 kB / 376.2 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.092e-05/0.01809, allocations: 31.8 kB / 376.3 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.879e-05/0.01814, allocations: 42.3 kB / 376.3 MB, free: 4.426 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.01814, allocations: 7.938 kB / 376.3 MB, free: 4.418 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.01814, allocations: 0 / 376.3 MB, free: 4.418 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.01815, allocations: 0 / 376.3 MB, free: 4.418 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.01917, allocations: 1.018 MB / 377.3 MB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.01917, allocations: 4.312 kB / 377.3 MB, free: 3.312 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.946e-05/0.01927, allocations: 35.92 kB / 377.4 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.01928, allocations: 4 kB / 377.4 MB, free: 3.273 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.01929, allocations: 11.98 kB / 377.4 MB, free: 3.262 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.109e-06/0.0193, allocations: 7.938 kB / 377.4 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.0193, allocations: 7.938 kB / 377.4 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003032/0.01961, allocations: 441.6 kB / 377.8 MB, free: 2.754 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.408e-05/0.01966, allocations: 47.72 kB / 377.9 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.01968, allocations: 11.94 kB / 377.9 MB, free: 2.695 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.535e-05/0.01975, allocations: 12 kB / 377.9 MB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.192e-05/0.0198, allocations: 27.95 kB / 377.9 MB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.737e-06/0.01981, allocations: 8 kB / 377.9 MB, free: 2.648 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.663e-05/0.01988, allocations: 189.1 kB / 378.1 MB, free: 2.461 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01988, allocations: 0 / 378.1 MB, free: 2.461 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002757/0.02016, allocations: 91.78 kB / 378.2 MB, free: 2.371 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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.inflow.stopOutflow,producing.growing.portB.stopOutflow,inventory.outflow.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 (25): * Single equations (assignments): 25 * 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.0001134/0.02027, allocations: 124.4 kB / 378.3 MB, free: 2.246 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002475/0.02052, allocations: 200.2 kB / 378.5 MB, free: 2.047 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.02052, allocations: 4 kB / 378.5 MB, free: 2.043 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.813e-05/0.0206, allocations: 77.12 kB / 378.6 MB, free: 1.965 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.02095, allocations: 88.75 kB / 378.7 MB, free: 1.887 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007306/0.02168, allocations: 0.656 MB / 379.3 MB, free: 1.152 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.958e-05/0.02174, allocations: 96.61 kB / 379.4 MB, free: 1.039 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000112/0.02185, allocations: 47.25 kB / 379.5 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.02199, allocations: 138.2 kB / 379.6 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of SimCode: time 1.133e-06/0.02199, allocations: 0 / 379.6 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of Templates: time 0.005919/0.02791, allocations: 3.738 MB / 383.4 MB, free: 13.21 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.makefile [Timeout 660] (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=240 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.949744457844645]