Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001747/0.001747, allocations: 113.1 kB / 17.6 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002013/0.002013, allocations: 186.7 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 225.6 MB / 249.4 MB, free: 3.02 MB / 190.1 MB " [Timeout remaining time 178] 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.1693/0.1693, allocations: 31.57 MB / 336.1 MB, free: 14.52 MB / 270.1 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.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.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 66.91 kB / 470.4 MB, free: 36.87 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1295, allocations: 59.49 MB / 0.5175 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.01007/0.1396, allocations: 6.878 MB / 0.5242 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002821/0.1424, allocations: 1.005 MB / 0.5252 GB, free: 4.539 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006298/0.143, allocations: 27.88 kB / 0.5252 GB, free: 4.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003853/0.1434, allocations: 103 kB / 0.5253 GB, free: 4.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002653/0.1437, allocations: 75.25 kB / 0.5254 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007866/0.1445, allocations: 239.3 kB / 0.5256 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007382/0.1452, allocations: 0.562 MB / 0.5262 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005192/0.1457, allocations: 225.4 kB / 0.5264 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002902/0.146, allocations: 231.1 kB / 0.5266 GB, free: 3.082 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000308/0.1463, allocations: 234.9 kB / 0.5268 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.266e-05/0.1464, allocations: 59.94 kB / 0.5269 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000126/0.1465, allocations: 71.98 kB / 0.527 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00016/0.1467, allocations: 131.6 kB / 0.5271 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00033/0.147, allocations: 258.6 kB / 0.5273 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007718/0.1478, allocations: 0.5718 MB / 0.5279 GB, free: 1.766 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1478, allocations: 0 / 0.5279 GB, free: 1.766 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.1478, allocations: 0 / 0.5279 GB, free: 1.766 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.1478, allocations: 0 / 0.5279 GB, free: 1.766 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001455/0.1493, allocations: 0.8051 MB / 0.5287 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.1493, allocations: 12.03 kB / 0.5287 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003136/0.1496, allocations: 76.53 kB / 0.5288 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006078/0.1502, allocations: 412.2 kB / 0.5292 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.319e-05/0.1503, allocations: 49.31 kB / 0.5292 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.1504, allocations: 59.94 kB / 0.5293 GB, free: 284 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008997/0.1513, allocations: 0.4914 MB / 0.5298 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.1513, allocations: 8 kB / 0.5298 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.96e-05/0.1513, allocations: 27.92 kB / 0.5298 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.826e-05/0.1514, allocations: 12 kB / 0.5298 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007018/0.1521, allocations: 307.7 kB / 0.5301 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00259/0.1547, allocations: 1.86 MB / 0.5319 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006999/0.1554, allocations: 289.3 kB / 0.5322 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003212/0.1557, allocations: 185.6 kB / 0.5324 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.079e-05/0.1557, allocations: 240 / 0.5324 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.502e-05/0.1558, allocations: 42.73 kB / 0.5324 GB, free: 12.9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.363e-06/0.1558, allocations: 0 / 0.5324 GB, free: 12.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009038/0.1567, allocations: 383.3 kB / 0.5328 GB, free: 12.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.1568, allocations: 162.2 kB / 0.5329 GB, free: 12.33 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004985/0.1573, allocations: 320.4 kB / 0.5332 GB, free: 12.01 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.682e-05/0.1573, allocations: 41.7 kB / 0.5333 GB, free: 11.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002715/0.1576, allocations: 261.5 kB / 0.5335 GB, free: 11.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.604e-05/0.1577, allocations: 103.2 kB / 0.5336 GB, free: 11.6 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.1578, allocations: 102.2 kB / 0.5337 GB, free: 11.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000308/0.1581, allocations: 350.7 kB / 0.534 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003449/0.1585, allocations: 145 kB / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004474/0.1589, allocations: 258 kB / 0.5344 GB, free: 10.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007509/0.1597, allocations: 366.8 kB / 0.5348 GB, free: 10.31 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1597, allocations: 0 / 0.5348 GB, free: 10.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000973/0.1607, allocations: 479.6 kB / 0.5352 GB, free: 9.832 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.1607, allocations: 7.938 kB / 0.5352 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.1607, allocations: 7.938 kB / 0.5353 GB, free: 9.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.657e-05/0.1607, allocations: 8 kB / 0.5353 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002864/0.161, allocations: 67.83 kB / 0.5353 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.857e-05/0.161, allocations: 11.98 kB / 0.5353 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000285/0.1613, allocations: 63.86 kB / 0.5354 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-05/0.1614, allocations: 23.98 kB / 0.5354 GB, free: 9.645 MB / 398.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 (63): * Single equations (assignments): 63 * 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.000252/0.1616, allocations: 199.5 kB / 0.5356 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.1617, allocations: 39.7 kB / 0.5356 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/0.1618, allocations: 43.86 kB / 0.5357 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.1618, allocations: 4 kB / 0.5357 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.1618, allocations: 0 / 0.5357 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.1619, allocations: 3.984 kB / 0.5357 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002272/0.1641, allocations: 1.225 MB / 0.5369 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.1641, allocations: 4 kB / 0.5369 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002245/0.1644, allocations: 39.91 kB / 0.5369 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.865e-06/0.1644, allocations: 4 kB / 0.5369 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.418e-05/0.1644, allocations: 12 kB / 0.537 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.277e-06/0.1644, allocations: 15.81 kB / 0.537 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1644, allocations: 0 / 0.537 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.1655, allocations: 0.5698 MB / 0.5375 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001835/0.1656, allocations: 144.8 kB / 0.5377 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.712e-05/0.1657, allocations: 8 kB / 0.5377 GB, free: 7.164 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001989/0.1659, allocations: 19.92 kB / 0.5377 GB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.166, allocations: 39.95 kB / 0.5377 GB, free: 7.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.166, allocations: 8 kB / 0.5377 GB, free: 7.098 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000316/0.1664, allocations: 211.1 kB / 0.5379 GB, free: 6.895 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1664, allocations: 0 / 0.5379 GB, free: 6.895 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004862/0.1668, allocations: 111.7 kB / 0.538 GB, free: 6.785 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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,producing.growing.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 31 * 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.0002632/0.1671, allocations: 112.9 kB / 0.5381 GB, free: 6.664 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008139/0.1679, allocations: 338.1 kB / 0.5385 GB, free: 6.336 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.1679, allocations: 0 / 0.5385 GB, free: 6.336 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003219/0.1682, allocations: 145.1 kB / 0.5386 GB, free: 6.195 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006549/0.1689, allocations: 107.3 kB / 0.5387 GB, free: 6.098 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.1706, allocations: 0.8363 MB / 0.5395 GB, free: 5.203 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006141/0.1712, allocations: 0.827 MB / 0.5403 GB, free: 4.352 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000256/0.1714, allocations: 63.3 kB / 0.5404 GB, free: 4.289 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.1715, allocations: 35.44 kB / 0.5404 GB, free: 4.254 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1715, allocations: 0 / 0.5404 GB, free: 4.254 MB / 398.1 MB Notification: Performance of Templates: time 0.01099/0.1825, allocations: 4.473 MB / 0.5448 GB, free: 15.84 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.makefile [Timeout 660] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.164533496834338]