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.0009711/0.0009711, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.0009672/0.0009672, allocations: 169 kB / 24.06 MB, free: 456 kB / 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 0.9595/0.9595, allocations: 177.1 MB / 204.5 MB, free: 5.496 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.1059/0.1059, allocations: 24.15 MB / 285.2 MB, free: 5.094 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.413e-06/1.413e-06, allocations: 0 / 362.4 MB, free: 3.625 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.469e-05/1.61e-05, allocations: 9.406 kB / 362.4 MB, free: 3.617 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004723/0.004739, allocations: 5.226 MB / 367.6 MB, free: 14.36 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.005868, allocations: 0.6231 MB / 368.3 MB, free: 13.73 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.006084, allocations: 11.94 kB / 368.3 MB, free: 13.72 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000205/0.006289, allocations: 83.2 kB / 368.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001626/0.006452, allocations: 75.3 kB / 368.4 MB, free: 13.57 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004361/0.006888, allocations: 187.5 kB / 368.6 MB, free: 13.38 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003503/0.007238, allocations: 470.9 kB / 369.1 MB, free: 12.92 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.007439, allocations: 154.8 kB / 369.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002324/0.007671, allocations: 299.4 kB / 369.5 MB, free: 12.48 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001627/0.007834, allocations: 139.5 kB / 369.7 MB, free: 12.34 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.22e-05/0.007876, allocations: 44 kB / 369.7 MB, free: 12.3 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.725e-05/0.007943, allocations: 47.94 kB / 369.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.088e-05/0.008024, allocations: 107.6 kB / 369.9 MB, free: 12.15 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.843e-05/0.008113, allocations: 139.6 kB / 370 MB, free: 12.01 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002756/0.008388, allocations: 298.8 kB / 370.3 MB, free: 11.72 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.913e-06/0.00839, allocations: 3.938 kB / 370.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.008391, allocations: 0 / 370.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.008395, allocations: 0 / 370.3 MB, free: 11.71 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.0009221/0.009317, allocations: 0.7025 MB / 371 MB, free: 10.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.009349, allocations: 8.75 kB / 371 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000197/0.009546, allocations: 100.6 kB / 371.1 MB, free: 10.87 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000317/0.009863, allocations: 302.2 kB / 371.4 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.951e-05/0.009902, allocations: 41.36 kB / 371.4 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.668e-05/0.009959, allocations: 48.38 kB / 371.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003457/0.0103, allocations: 398.3 kB / 371.9 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.01032, allocations: 0 / 371.9 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.01034, allocations: 16 kB / 371.9 MB, free: 10 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.01035, allocations: 12 kB / 371.9 MB, free: 9.988 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001224/0.01047, allocations: 110.8 kB / 372 MB, free: 9.879 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001105/0.01158, allocations: 1.74 MB / 373.7 MB, free: 8.074 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000169/0.01174, allocations: 180.7 kB / 373.9 MB, free: 7.848 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.285e-05/0.01182, allocations: 86.7 kB / 374 MB, free: 7.746 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.01183, allocations: 15.92 kB / 374 MB, free: 7.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.01186, allocations: 49.38 kB / 374.1 MB, free: 7.672 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 1.372e-06/0.01186, allocations: 0 / 374.1 MB, free: 7.672 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.0002722/0.01213, allocations: 181.3 kB / 374.2 MB, free: 7.488 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/0.01218, allocations: 162.2 kB / 374.4 MB, free: 7.293 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.01234, allocations: 315.9 kB / 374.7 MB, free: 6.969 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.01237, allocations: 37.7 kB / 374.7 MB, free: 6.926 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.0125, allocations: 279.5 kB / 375 MB, free: 6.648 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.881e-05/0.01255, allocations: 87.34 kB / 375.1 MB, free: 6.562 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.01265, allocations: 111.7 kB / 375.2 MB, free: 6.445 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.01278, allocations: 0.5117 MB / 375.7 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.175e-05/0.01286, allocations: 52.95 kB / 375.8 MB, free: 5.867 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.01302, allocations: 262.9 kB / 376 MB, free: 5.535 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002104/0.01324, allocations: 298 kB / 376.3 MB, free: 5.168 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.01324, allocations: 0 / 376.3 MB, free: 5.168 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003067/0.01354, allocations: 313.4 kB / 376.6 MB, free: 4.855 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.01356, allocations: 20.02 kB / 376.7 MB, free: 4.836 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.01357, allocations: 4 kB / 376.7 MB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.01358, allocations: 8 kB / 376.7 MB, free: 4.824 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.0137, allocations: 59.84 kB / 376.7 MB, free: 4.766 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.0137, allocations: 11.94 kB / 376.7 MB, free: 4.754 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.298e-05/0.0138, allocations: 47.62 kB / 376.8 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.01381, allocations: 16 kB / 376.8 MB, free: 4.691 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.0001174/0.01393, allocations: 209.6 kB / 377 MB, free: 4.477 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.832e-05/0.014, allocations: 39.78 kB / 377 MB, free: 4.438 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.919e-05/0.01404, allocations: 38.27 kB / 377.1 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.01404, allocations: 8 kB / 377.1 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.255e-06/0.01404, allocations: 0 / 377.1 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.01405, allocations: 0 / 377.1 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009956/0.01504, allocations: 1.018 MB / 378.1 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.01505, allocations: 0 / 378.1 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.719e-05/0.01514, allocations: 40.23 kB / 378.1 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.01515, allocations: 4 kB / 378.1 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.01516, allocations: 15.98 kB / 378.2 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.01517, allocations: 11.88 kB / 378.2 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.01517, allocations: 4 kB / 378.2 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002716/0.01544, allocations: 440.9 kB / 378.6 MB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.972e-05/0.01549, allocations: 47.72 kB / 378.7 MB, free: 2.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.01552, allocations: 15.88 kB / 378.7 MB, free: 2.664 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.77e-05/0.01559, allocations: 12 kB / 378.7 MB, free: 2.652 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.018e-05/0.01564, allocations: 27.95 kB / 378.7 MB, free: 2.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.01565, allocations: 8 kB / 378.7 MB, free: 2.617 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.29e-05/0.01572, allocations: 189.1 kB / 378.9 MB, free: 2.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01572, allocations: 0 / 378.9 MB, free: 2.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002458/0.01597, allocations: 83.78 kB / 379 MB, free: 2.348 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 9e-05/0.01606, allocations: 128.7 kB / 379.1 MB, free: 2.219 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002169/0.01627, allocations: 200.4 kB / 379.3 MB, free: 2.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.01627, allocations: 0 / 379.3 MB, free: 2.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.152e-05/0.01635, allocations: 83.61 kB / 379.4 MB, free: 1.934 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.01665, allocations: 71.91 kB / 379.5 MB, free: 1.867 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006296/0.01728, allocations: 0.656 MB / 380.1 MB, free: 1.133 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.727e-05/0.01733, allocations: 100.6 kB / 380.2 MB, free: 1.016 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.01744, allocations: 43.27 kB / 380.3 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.01757, allocations: 142.2 kB / 380.4 MB, free: 0.832 MB / 346.7 MB Notification: Performance of SimCode: time 7.41e-07/0.01758, allocations: 0 / 380.4 MB, free: 0.832 MB / 346.7 MB Notification: Performance of Templates: time 0.005665/0.02324, allocations: 3.798 MB / 384.2 MB, free: 13.12 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.9511266737245023]