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.001136/0.001136, 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.0009331/0.0009331, allocations: 165 kB / 23.02 MB, free: 1.555 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.9618/0.9618, 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 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.1039/0.1039, allocations: 24.15 MB / 284.1 MB, free: 5.246 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.743e-06/1.743e-06, allocations: 0 / 361.2 MB, free: 2.875 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.683e-05/2.857e-05, allocations: 2.312 kB / 361.2 MB, free: 2.871 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006667/0.006696, allocations: 5.292 MB / 366.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.007864, allocations: 0.6189 MB / 367.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002202/0.008084, allocations: 11.94 kB / 367.1 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002752/0.008359, allocations: 79.27 kB / 367.2 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002158/0.008575, allocations: 79.3 kB / 367.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005886/0.009163, allocations: 183.5 kB / 367.4 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005082/0.009672, allocations: 471 kB / 367.9 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002982/0.00997, allocations: 150.8 kB / 368 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003418/0.01031, allocations: 291.4 kB / 368.3 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002398/0.01055, allocations: 139.6 kB / 368.5 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.843e-05/0.01062, allocations: 44 kB / 368.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.01072, allocations: 55.98 kB / 368.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.01084, allocations: 107.6 kB / 368.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.01099, allocations: 151.6 kB / 368.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00042/0.01141, allocations: 314.7 kB / 369.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.01141, allocations: 0 / 369.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.01141, allocations: 0 / 369.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.01141, allocations: 0 / 369.1 MB, free: 10.89 MB / 298.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.000967/0.01238, allocations: 0.7146 MB / 369.8 MB, free: 10.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.01242, allocations: 12.75 kB / 369.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003088/0.01273, allocations: 96.62 kB / 369.9 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000423/0.01316, allocations: 279.6 kB / 370.2 MB, free: 9.738 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.729e-05/0.0132, allocations: 37.38 kB / 370.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.647e-05/0.01328, allocations: 48.38 kB / 370.3 MB, free: 9.652 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006186/0.0139, allocations: 422.3 kB / 370.7 MB, free: 9.188 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.01391, allocations: 4 kB / 370.7 MB, free: 9.184 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.306e-05/0.01394, allocations: 16 kB / 370.7 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.01396, allocations: 12 kB / 370.7 MB, free: 9.156 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003131/0.01427, allocations: 137.8 kB / 370.9 MB, free: 9.023 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001807/0.01608, allocations: 1.767 MB / 372.6 MB, free: 7.184 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004613/0.01654, allocations: 224.2 kB / 372.9 MB, free: 6.914 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.01672, allocations: 99.16 kB / 373 MB, free: 6.801 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.01674, allocations: 4 kB / 373 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.43e-05/0.01677, allocations: 49.27 kB / 373 MB, free: 6.738 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 2.165e-06/0.01677, allocations: 0 / 373 MB, free: 6.738 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.0005281/0.0173, allocations: 230.6 kB / 373.2 MB, free: 6.508 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/0.01737, allocations: 158.2 kB / 373.4 MB, free: 6.316 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002941/0.01767, allocations: 300.1 kB / 373.7 MB, free: 6.004 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.014e-05/0.01771, allocations: 41.69 kB / 373.7 MB, free: 5.957 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.01787, allocations: 271.3 kB / 374 MB, free: 5.684 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.696e-05/0.01795, allocations: 87.27 kB / 374.1 MB, free: 5.598 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001499/0.0181, allocations: 107.8 kB / 374.2 MB, free: 5.484 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.01827, allocations: 0.5156 MB / 374.7 MB, free: 4.957 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000185/0.01845, allocations: 65.33 kB / 374.8 MB, free: 4.895 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002811/0.01873, allocations: 250.6 kB / 375 MB, free: 4.582 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003828/0.01912, allocations: 274.4 kB / 375.3 MB, free: 4.254 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.01912, allocations: 0 / 375.3 MB, free: 4.254 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000607/0.01973, allocations: 342.1 kB / 375.6 MB, free: 3.914 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.01975, allocations: 8 kB / 375.6 MB, free: 3.906 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.01975, allocations: 0 / 375.6 MB, free: 3.906 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.01978, allocations: 8 kB / 375.6 MB, free: 3.898 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002195/0.02, allocations: 55.91 kB / 375.7 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.02001, allocations: 11.92 kB / 375.7 MB, free: 3.832 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001897/0.0202, allocations: 43.73 kB / 375.7 MB, free: 3.789 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-05/0.02024, allocations: 23.98 kB / 375.8 MB, free: 3.766 MB / 298.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.0001718/0.02041, allocations: 205.6 kB / 376 MB, free: 3.555 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.02053, allocations: 43.81 kB / 376 MB, free: 3.512 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.38e-05/0.02059, allocations: 34.27 kB / 376 MB, free: 3.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.0206, allocations: 4 kB / 376 MB, free: 3.477 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.0206, allocations: 0 / 376 MB, free: 3.477 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.02061, allocations: 4 kB / 376 MB, free: 3.473 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001317/0.02193, allocations: 1.157 MB / 377.2 MB, free: 2.215 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.02193, allocations: 3.938 kB / 377.2 MB, free: 2.211 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001761/0.02211, allocations: 47.84 kB / 377.2 MB, free: 2.164 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.932e-06/0.02211, allocations: 4 kB / 377.2 MB, free: 2.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.072e-05/0.02214, allocations: 8 kB / 377.3 MB, free: 2.152 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.588e-06/0.02215, allocations: 12 kB / 377.3 MB, free: 2.141 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.02216, allocations: 4 kB / 377.3 MB, free: 2.137 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005797/0.02274, allocations: 497.5 kB / 377.8 MB, free: 1.578 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.02284, allocations: 55.77 kB / 377.8 MB, free: 1.523 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.338e-05/0.02289, allocations: 12 kB / 377.8 MB, free: 1.512 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.02306, allocations: 15.94 kB / 377.8 MB, free: 1.496 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.953e-05/0.02315, allocations: 35.83 kB / 377.9 MB, free: 1.461 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.02317, allocations: 12 kB / 377.9 MB, free: 1.449 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000152/0.02332, allocations: 193.1 kB / 378.1 MB, free: 1.262 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.02332, allocations: 0 / 378.1 MB, free: 1.262 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004431/0.02376, allocations: 99.72 kB / 378.2 MB, free: 1.164 MB / 298.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.0001163/0.02388, allocations: 121.2 kB / 378.3 MB, free: 1.031 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004296/0.02431, allocations: 216.6 kB / 378.5 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.02431, allocations: 0 / 378.5 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001585/0.02447, allocations: 97.02 kB / 378.6 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005638/0.02503, allocations: 82.72 kB / 378.7 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.02609, allocations: 0.7054 MB / 379.4 MB, free: 15.85 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.856e-05/0.02617, allocations: 100.9 kB / 379.5 MB, free: 15.73 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001674/0.02634, allocations: 47.25 kB / 379.5 MB, free: 15.69 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.788e-05/0.02644, allocations: 40.48 kB / 379.6 MB, free: 15.65 MB / 314.7 MB Notification: Performance of SimCode: time 7.52e-07/0.02644, allocations: 0 / 379.6 MB, free: 15.65 MB / 314.7 MB Notification: Performance of Templates: time 0.00822/0.03466, allocations: 3.907 MB / 383.5 MB, free: 11.84 MB / 314.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: 3.104150711093098]