Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.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.001317/0.001317, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.00164/0.00164, allocations: 169 kB / 23.02 MB, free: 1.551 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 0.9708/0.9708, allocations: 177.1 MB / 203.4 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.1004/0.1004, allocations: 24.14 MB / 284.1 MB, free: 5.227 MB / 266.7 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/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.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 361.2 MB, free: 4.023 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.782e-05/2.965e-05, allocations: 6.031 kB / 361.2 MB, free: 4.02 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006273/0.006302, allocations: 6.572 MB / 367.7 MB, free: 13.41 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.007895, allocations: 1.001 MB / 368.8 MB, free: 12.41 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003387/0.008234, allocations: 27.75 kB / 368.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002776/0.008512, allocations: 110.9 kB / 368.9 MB, free: 12.27 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001975/0.008709, allocations: 83.19 kB / 369 MB, free: 12.19 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000556/0.009265, allocations: 239.3 kB / 369.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005526/0.009818, allocations: 0.5735 MB / 369.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002769/0.01009, allocations: 209.8 kB / 370 MB, free: 11.18 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003214/0.01042, allocations: 363.1 kB / 370.3 MB, free: 10.82 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.0106, allocations: 163.5 kB / 370.5 MB, free: 10.66 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.522e-05/0.01066, allocations: 52 kB / 370.5 MB, free: 10.61 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.337e-05/0.01074, allocations: 59.98 kB / 370.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.401e-05/0.01084, allocations: 127.6 kB / 370.7 MB, free: 10.43 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.01095, allocations: 171.5 kB / 370.9 MB, free: 10.26 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004117/0.01136, allocations: 366.5 kB / 371.3 MB, free: 9.902 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.01137, allocations: 4 kB / 371.3 MB, free: 9.898 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.01137, allocations: 4 kB / 371.3 MB, free: 9.895 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.01138, allocations: 0 / 371.3 MB, free: 9.895 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.0008675/0.01224, allocations: 0.7996 MB / 372.1 MB, free: 9.059 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.01228, allocations: 12.75 kB / 372.1 MB, free: 9.047 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002455/0.01253, allocations: 120.5 kB / 372.2 MB, free: 8.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004046/0.01293, allocations: 369.7 kB / 372.6 MB, free: 8.547 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.314e-05/0.01298, allocations: 45.38 kB / 372.6 MB, free: 8.504 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.857e-05/0.01304, allocations: 56.38 kB / 372.7 MB, free: 8.449 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005306/0.01357, allocations: 490.3 kB / 373.1 MB, free: 7.914 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.01358, allocations: 4 kB / 373.1 MB, free: 7.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/0.01361, allocations: 23.94 kB / 373.2 MB, free: 7.887 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.01362, allocations: 16 kB / 373.2 MB, free: 7.871 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002501/0.01387, allocations: 169.8 kB / 373.3 MB, free: 7.711 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001533/0.01541, allocations: 2.003 MB / 375.3 MB, free: 5.621 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.01564, allocations: 224.7 kB / 375.6 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.01576, allocations: 117.6 kB / 375.7 MB, free: 5.223 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.608e-05/0.01578, allocations: 7.984 kB / 375.7 MB, free: 5.215 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.01581, allocations: 41.39 kB / 375.7 MB, free: 5.164 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.863e-06/0.01581, allocations: 0 / 375.7 MB, free: 5.164 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0003799/0.01619, allocations: 241.8 kB / 376 MB, free: 4.922 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/0.01625, allocations: 162.2 kB / 376.1 MB, free: 4.727 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.01646, allocations: 338.1 kB / 376.4 MB, free: 4.379 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.957e-05/0.01648, allocations: 41.7 kB / 376.5 MB, free: 4.332 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.01663, allocations: 327.5 kB / 376.8 MB, free: 4.004 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.346e-05/0.01668, allocations: 91.25 kB / 376.9 MB, free: 3.914 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.01679, allocations: 115.9 kB / 377 MB, free: 3.793 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.01691, allocations: 0.5157 MB / 377.5 MB, free: 3.266 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.01703, allocations: 69.64 kB / 377.6 MB, free: 3.195 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001967/0.01723, allocations: 294.6 kB / 377.9 MB, free: 2.824 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002663/0.01749, allocations: 327.9 kB / 378.2 MB, free: 2.426 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.0175, allocations: 0 / 378.2 MB, free: 2.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0003956/0.01789, allocations: 385.5 kB / 378.6 MB, free: 2.043 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.01791, allocations: 8 kB / 378.6 MB, free: 2.035 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.01792, allocations: 4 kB / 378.6 MB, free: 2.031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.01793, allocations: 16.48 kB / 378.6 MB, free: 2.016 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.01809, allocations: 67.84 kB / 378.7 MB, free: 1.949 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.0181, allocations: 11.94 kB / 378.7 MB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.01821, allocations: 47.66 kB / 378.7 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.01823, allocations: 24 kB / 378.8 MB, free: 1.867 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (65): * Single equations (assignments): 65 * 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.000127/0.01835, allocations: 201.7 kB / 379 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.416e-05/0.01842, allocations: 47.77 kB / 379 MB, free: 1.613 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.17e-05/0.01846, allocations: 34.45 kB / 379 MB, free: 1.574 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.01846, allocations: 7.938 kB / 379 MB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.01847, allocations: 4 kB / 379 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.01847, allocations: 7.984 kB / 379.1 MB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008339/0.01931, allocations: 1.135 MB / 380.2 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.01931, allocations: 3.938 kB / 380.2 MB, free: 340 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.01942, allocations: 35.91 kB / 380.2 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.01942, allocations: 4 kB / 380.2 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.01945, allocations: 12 kB / 380.2 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.01945, allocations: 0 / 380.2 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.01945, allocations: 8.25 kB / 380.2 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003545/0.01981, allocations: 474 kB / 380.7 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.645e-05/0.01986, allocations: 47.73 kB / 380.8 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.823e-05/0.01989, allocations: 12 kB / 380.8 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.67e-05/0.01997, allocations: 11.98 kB / 380.8 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.443e-05/0.02003, allocations: 35.83 kB / 380.8 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.02004, allocations: 12 kB / 380.8 MB, free: 15.63 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001062/0.02015, allocations: 211 kB / 381 MB, free: 15.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.02015, allocations: 0 / 381 MB, free: 15.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002537/0.0204, allocations: 111.6 kB / 381.1 MB, free: 15.32 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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,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 (29): * Single equations (assignments): 29 * 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 8.746e-05/0.02049, allocations: 119.7 kB / 381.3 MB, free: 15.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000298/0.02079, allocations: 233.9 kB / 381.5 MB, free: 14.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.02079, allocations: 0 / 381.5 MB, free: 14.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.323e-05/0.02089, allocations: 103.6 kB / 381.6 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.02123, allocations: 86.89 kB / 381.7 MB, free: 14.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007872/0.02201, allocations: 0.7578 MB / 382.4 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.976e-05/0.02208, allocations: 121 kB / 382.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001266/0.02221, allocations: 59.27 kB / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.721e-05/0.02228, allocations: 40.48 kB / 382.6 MB, free: 13.73 MB / 362.7 MB Notification: Performance of SimCode: time 5.51e-07/0.02228, allocations: 0 / 382.6 MB, free: 13.73 MB / 362.7 MB Notification: Performance of Templates: time 0.006503/0.02878, allocations: 4.285 MB / 386.9 MB, free: 9.555 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.makefile [Timeout 660] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=240 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.002742839977145]