Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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.002501/0.002501, allocations: 85.48 kB / 19.44 MB, free: 344 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.003092/0.003092, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.555/1.555, allocations: 177.1 MB / 203.1 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] 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.3415/0.3415, allocations: 24.12 MB / 283.7 MB, free: 5.316 MB / 266.7 MB " [Timeout remaining time 179] 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.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 360.4 MB, free: 4.363 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.595e-05/2.724e-05, allocations: 2.312 kB / 360.4 MB, free: 4.359 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.008103/0.008131, allocations: 5.226 MB / 365.7 MB, free: 15.11 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.009548, allocations: 0.6111 MB / 366.3 MB, free: 14.49 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000211/0.009759, allocations: 11.94 kB / 366.3 MB, free: 14.48 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002595/0.01002, allocations: 83.2 kB / 366.4 MB, free: 14.4 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002314/0.01025, allocations: 71.36 kB / 366.4 MB, free: 14.33 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005618/0.01081, allocations: 195.4 kB / 366.6 MB, free: 14.14 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006128/0.01142, allocations: 471 kB / 367.1 MB, free: 13.68 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00029/0.01171, allocations: 146.9 kB / 367.2 MB, free: 13.54 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003966/0.01211, allocations: 295.3 kB / 367.5 MB, free: 13.25 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002728/0.01238, allocations: 147.6 kB / 367.7 MB, free: 13.1 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.121e-05/0.01247, allocations: 44 kB / 367.7 MB, free: 13.06 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.01258, allocations: 51.98 kB / 367.8 MB, free: 13.01 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001388/0.01272, allocations: 111.6 kB / 367.9 MB, free: 12.9 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001863/0.0129, allocations: 143.6 kB / 368 MB, free: 12.76 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006821/0.01359, allocations: 482.3 kB / 368.5 MB, free: 12.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.01359, allocations: 0 / 368.5 MB, free: 12.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.01359, allocations: 0 / 368.5 MB, free: 12.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.567e-06/0.0136, allocations: 0 / 368.5 MB, free: 12.29 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.001313/0.01491, allocations: 0.7415 MB / 369.2 MB, free: 11.51 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.01495, allocations: 8.75 kB / 369.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003527/0.01531, allocations: 100.6 kB / 369.3 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004988/0.01581, allocations: 271.7 kB / 369.6 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.356e-05/0.01586, allocations: 41.38 kB / 369.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-05/0.01595, allocations: 48.38 kB / 369.7 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008413/0.01679, allocations: 493.6 kB / 370.2 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.0168, allocations: 0 / 370.2 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.01684, allocations: 16 kB / 370.2 MB, free: 10.47 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.01686, allocations: 12 kB / 370.2 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005095/0.01737, allocations: 215.8 kB / 370.4 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00272/0.02009, allocations: 1.853 MB / 372.3 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006044/0.02069, allocations: 260.2 kB / 372.5 MB, free: 8.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002708/0.02096, allocations: 142.7 kB / 372.7 MB, free: 7.863 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-05/0.021, allocations: 8 kB / 372.7 MB, free: 7.855 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.02104, allocations: 49.27 kB / 372.7 MB, free: 7.797 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 1.923e-06/0.02104, allocations: 0 / 372.7 MB, free: 7.797 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008546/0.0219, allocations: 306.3 kB / 373 MB, free: 7.492 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001352/0.02203, allocations: 158.2 kB / 373.2 MB, free: 7.301 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004032/0.02244, allocations: 352.2 kB / 373.5 MB, free: 6.941 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.511e-05/0.02249, allocations: 46.08 kB / 373.6 MB, free: 6.891 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002357/0.02273, allocations: 279.3 kB / 373.8 MB, free: 6.613 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.02284, allocations: 103.2 kB / 373.9 MB, free: 6.512 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002184/0.02306, allocations: 131.8 kB / 374.1 MB, free: 6.375 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003061/0.02336, allocations: 0.5313 MB / 374.6 MB, free: 5.832 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002911/0.02365, allocations: 116.9 kB / 374.7 MB, free: 5.715 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004727/0.02413, allocations: 302.6 kB / 375 MB, free: 5.355 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006059/0.02473, allocations: 354.4 kB / 375.3 MB, free: 4.949 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.02474, allocations: 0 / 375.3 MB, free: 4.949 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008698/0.02561, allocations: 421.7 kB / 375.8 MB, free: 4.531 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.02563, allocations: 8 kB / 375.8 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.02564, allocations: 4 kB / 375.8 MB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.02566, allocations: 4 kB / 375.8 MB, free: 4.516 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/0.02592, allocations: 63.84 kB / 375.8 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.799e-05/0.02594, allocations: 12.39 kB / 375.8 MB, free: 4.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002265/0.02617, allocations: 47.72 kB / 375.9 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.154e-05/0.02621, allocations: 20 kB / 375.9 MB, free: 4.375 MB / 346.7 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.0002592/0.02647, allocations: 233.6 kB / 376.1 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.02659, allocations: 39.81 kB / 376.2 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.162e-05/0.02667, allocations: 34.27 kB / 376.2 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.02668, allocations: 4 kB / 376.2 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.02668, allocations: 0 / 376.2 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.02669, allocations: 4 kB / 376.2 MB, free: 4.059 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001871/0.02856, allocations: 1.31 MB / 377.5 MB, free: 2.645 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.02857, allocations: 4 kB / 377.5 MB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.02876, allocations: 39.84 kB / 377.6 MB, free: 2.602 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.759e-06/0.02877, allocations: 8.406 kB / 377.6 MB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.0288, allocations: 8 kB / 377.6 MB, free: 2.586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.594e-06/0.02881, allocations: 8 kB / 377.6 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.02881, allocations: 4 kB / 377.6 MB, free: 2.574 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009241/0.02974, allocations: 0.5966 MB / 378.2 MB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.02986, allocations: 51.73 kB / 378.2 MB, free: 1.852 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.097e-05/0.02991, allocations: 15.98 kB / 378.3 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/0.03009, allocations: 12.06 kB / 378.3 MB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.0302, allocations: 39.89 kB / 378.3 MB, free: 1.785 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.03023, allocations: 16 kB / 378.3 MB, free: 1.77 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002622/0.03049, allocations: 217.1 kB / 378.5 MB, free: 1.555 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03049, allocations: 0 / 378.5 MB, free: 1.555 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005008/0.03099, allocations: 95.72 kB / 378.6 MB, free: 1.461 MB / 346.7 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.0001705/0.03116, allocations: 117.2 kB / 378.7 MB, free: 1.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009894/0.03215, allocations: 312.8 kB / 379.1 MB, free: 1.031 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.03216, allocations: 0 / 379.1 MB, free: 1.031 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002475/0.0324, allocations: 126.4 kB / 379.2 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000609/0.03301, allocations: 97.56 kB / 379.3 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.03437, allocations: 0.7287 MB / 380 MB, free: 0 / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.03461, allocations: 190.8 kB / 380.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001937/0.0348, allocations: 43.27 kB / 380.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.202e-05/0.0349, allocations: 32.5 kB / 380.3 MB, free: 15.72 MB / 362.7 MB Notification: Performance of SimCode: time 6.91e-07/0.0349, allocations: 0 / 380.3 MB, free: 15.72 MB / 362.7 MB Notification: Performance of Templates: time 0.009757/0.04465, allocations: 3.919 MB / 384.2 MB, free: 11.9 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.makefile [Timeout 660] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=240 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.972474428010173]