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.001702/0.001702, allocations: 88.72 kB / 19.44 MB, free: 356 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.002384/0.002384, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.498/1.498, allocations: 177.1 MB / 203.1 MB, free: 5.27 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.1786/0.1786, allocations: 24.12 MB / 283.7 MB, free: 5.16 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.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 2.014e-06/2.014e-06, allocations: 0 / 360.4 MB, free: 4.391 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.374e-05/3.576e-05, allocations: 6.25 kB / 360.4 MB, free: 4.383 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.008247/0.008283, allocations: 5.086 MB / 365.5 MB, free: 15.27 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001757/0.01004, allocations: 0.5995 MB / 366.1 MB, free: 14.66 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000435/0.01047, allocations: 19.88 kB / 366.2 MB, free: 14.64 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000369/0.01084, allocations: 79.27 kB / 366.2 MB, free: 14.57 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003408/0.01118, allocations: 75.3 kB / 366.3 MB, free: 14.49 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009527/0.01214, allocations: 191.4 kB / 366.5 MB, free: 14.3 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008018/0.01294, allocations: 467.1 kB / 366.9 MB, free: 13.85 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003628/0.0133, allocations: 154.8 kB / 367.1 MB, free: 13.7 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005533/0.01386, allocations: 287.4 kB / 367.4 MB, free: 13.42 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003276/0.01418, allocations: 147.5 kB / 367.5 MB, free: 13.27 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.065e-05/0.01427, allocations: 44 kB / 367.6 MB, free: 13.23 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.0144, allocations: 48 kB / 367.6 MB, free: 13.18 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001481/0.01455, allocations: 115.6 kB / 367.7 MB, free: 13.07 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001895/0.01474, allocations: 143.6 kB / 367.9 MB, free: 12.93 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007237/0.01546, allocations: 474.4 kB / 368.3 MB, free: 12.46 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.01546, allocations: 0 / 368.3 MB, free: 12.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.01546, allocations: 0 / 368.3 MB, free: 12.46 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.01548, allocations: 0 / 368.3 MB, free: 12.46 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.001455/0.01693, allocations: 0.6264 MB / 369 MB, free: 11.81 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.01697, allocations: 8.75 kB / 369 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003921/0.01737, allocations: 96.62 kB / 369.1 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005356/0.0179, allocations: 280.8 kB / 369.3 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.84e-05/0.01796, allocations: 37.38 kB / 369.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.962e-05/0.01805, allocations: 48.38 kB / 369.4 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008858/0.01894, allocations: 475 kB / 369.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.01895, allocations: 0 / 369.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.23e-05/0.01899, allocations: 16 kB / 369.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.01901, allocations: 12 kB / 369.9 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006406/0.01965, allocations: 251.7 kB / 370.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002368/0.02202, allocations: 1.409 MB / 371.6 MB, free: 9.074 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006421/0.02266, allocations: 246.2 kB / 371.8 MB, free: 8.797 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/0.02299, allocations: 155.3 kB / 372 MB, free: 8.633 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.02301, allocations: 4 kB / 372 MB, free: 8.629 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.02305, allocations: 34.56 kB / 372 MB, free: 8.586 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 1.403e-06/0.02305, allocations: 0 / 372 MB, free: 8.586 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.0009498/0.024, allocations: 359.3 kB / 372.3 MB, free: 8.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.02411, allocations: 158.2 kB / 372.5 MB, free: 8.039 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003279/0.02444, allocations: 257.6 kB / 372.7 MB, free: 7.781 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.547e-05/0.0245, allocations: 41.7 kB / 372.8 MB, free: 7.734 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/0.0247, allocations: 212.6 kB / 373 MB, free: 7.523 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.93e-05/0.0248, allocations: 95.25 kB / 373.1 MB, free: 7.43 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/0.02497, allocations: 102.1 kB / 373.2 MB, free: 7.324 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001966/0.02516, allocations: 342.8 kB / 373.5 MB, free: 6.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005316/0.02569, allocations: 141 kB / 373.7 MB, free: 6.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004688/0.02616, allocations: 271 kB / 373.9 MB, free: 6.527 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006758/0.02684, allocations: 342.7 kB / 374.3 MB, free: 6.148 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.02684, allocations: 4 kB / 374.3 MB, free: 6.145 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009854/0.02783, allocations: 465.7 kB / 374.7 MB, free: 5.684 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.02785, allocations: 11.98 kB / 374.7 MB, free: 5.672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.02786, allocations: 4 kB / 374.7 MB, free: 5.668 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.627e-05/0.02789, allocations: 4 kB / 374.7 MB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002737/0.02816, allocations: 64.25 kB / 374.8 MB, free: 5.602 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.02818, allocations: 8 kB / 374.8 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002766/0.02845, allocations: 51.7 kB / 374.9 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.056e-05/0.02849, allocations: 20 kB / 374.9 MB, free: 5.523 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.0002627/0.02876, allocations: 194.8 kB / 375.1 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.02888, allocations: 39.81 kB / 375.1 MB, free: 5.285 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.164e-05/0.02896, allocations: 38.27 kB / 375.1 MB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.02897, allocations: 4 kB / 375.1 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.02897, allocations: 0 / 375.1 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.02898, allocations: 0 / 375.1 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001893/0.03087, allocations: 1.075 MB / 376.2 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.03088, allocations: 4 kB / 376.2 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002228/0.0311, allocations: 44.31 kB / 376.3 MB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.309e-05/0.03111, allocations: 8 kB / 376.3 MB, free: 4.035 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.88e-05/0.03114, allocations: 8 kB / 376.3 MB, free: 4.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.097e-06/0.03115, allocations: 7.938 kB / 376.3 MB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/0.03116, allocations: 7.984 kB / 376.3 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.03219, allocations: 0.5407 MB / 376.8 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.03232, allocations: 59.83 kB / 376.9 MB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.135e-05/0.03237, allocations: 11.98 kB / 376.9 MB, free: 3.344 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002377/0.03261, allocations: 23.94 kB / 376.9 MB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.03273, allocations: 35.83 kB / 377 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.533e-05/0.03275, allocations: 12 kB / 377 MB, free: 3.273 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002183/0.03297, allocations: 165.2 kB / 377.1 MB, free: 3.109 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03297, allocations: 0 / 377.1 MB, free: 3.109 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004903/0.03346, allocations: 91.78 kB / 377.2 MB, free: 3.02 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.0001846/0.03364, allocations: 129.1 kB / 377.4 MB, free: 2.887 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007478/0.03439, allocations: 300 kB / 377.7 MB, free: 2.594 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.426e-05/0.03441, allocations: 0 / 377.7 MB, free: 2.594 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000325/0.03473, allocations: 145.3 kB / 377.8 MB, free: 2.453 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006151/0.03535, allocations: 85.81 kB / 377.9 MB, free: 2.371 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.03676, allocations: 0.7146 MB / 378.6 MB, free: 1.586 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.03699, allocations: 186.8 kB / 378.8 MB, free: 1.383 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001974/0.03719, allocations: 51.25 kB / 378.8 MB, free: 1.332 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.03729, allocations: 32.5 kB / 378.9 MB, free: 1.301 MB / 346.7 MB Notification: Performance of SimCode: time 6.41e-07/0.03729, allocations: 0 / 378.9 MB, free: 1.301 MB / 346.7 MB Notification: Performance of Templates: time 0.00976/0.04705, allocations: 3.933 MB / 382.8 MB, free: 13.48 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=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.673725624918006]