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.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.001339/0.001339, allocations: 81.17 kB / 19.87 MB, free: 4.621 MB / 18.57 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.0009903/0.0009903, allocations: 169 kB / 23.27 MB, free: 1.223 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.994/0.994, allocations: 177.2 MB / 203.7 MB, free: 5.527 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.1188/0.1188, allocations: 24.15 MB / 284.4 MB, free: 5.133 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.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 1.613e-06/1.613e-06, allocations: 0 / 361.6 MB, free: 3.773 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.329e-05/2.491e-05, allocations: 9.266 kB / 361.6 MB, free: 3.766 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.02183/0.02185, allocations: 6.497 MB / 368.1 MB, free: 13.24 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.007967/0.02982, allocations: 1.005 MB / 369.1 MB, free: 12.23 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004158/0.03024, allocations: 31.75 kB / 369.2 MB, free: 12.2 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003001/0.03054, allocations: 107 kB / 369.3 MB, free: 12.09 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002324/0.03077, allocations: 83.17 kB / 369.4 MB, free: 12.01 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005637/0.0364, allocations: 239.3 kB / 369.6 MB, free: 11.78 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008138/0.03722, allocations: 0.5891 MB / 370.2 MB, free: 11.19 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003274/0.03755, allocations: 197.8 kB / 370.4 MB, free: 11 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003778/0.03792, allocations: 355.2 kB / 370.7 MB, free: 10.65 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002221/0.03815, allocations: 167.5 kB / 370.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.513e-05/0.03821, allocations: 52 kB / 370.9 MB, free: 10.43 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001041/0.03832, allocations: 63.94 kB / 371 MB, free: 10.37 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.03842, allocations: 131.5 kB / 371.1 MB, free: 10.24 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001296/0.03855, allocations: 163.6 kB / 371.3 MB, free: 10.08 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005011/0.03905, allocations: 378.4 kB / 371.7 MB, free: 9.711 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.03905, allocations: 0 / 371.7 MB, free: 9.711 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.03906, allocations: 4 kB / 371.7 MB, free: 9.707 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.411e-06/0.03906, allocations: 0 / 371.7 MB, free: 9.707 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.0009469/0.04001, allocations: 0.7956 MB / 372.5 MB, free: 8.875 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.04006, allocations: 8.75 kB / 372.5 MB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002482/0.0403, allocations: 120.5 kB / 372.6 MB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004303/0.04073, allocations: 377.6 kB / 373 MB, free: 8.359 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.179e-05/0.04078, allocations: 49.31 kB / 373 MB, free: 8.312 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.517e-05/0.04084, allocations: 56.38 kB / 373.1 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004209/0.04126, allocations: 458.2 kB / 373.5 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.04127, allocations: 0 / 373.5 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.0413, allocations: 28 kB / 373.5 MB, free: 7.727 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.04131, allocations: 12 kB / 373.5 MB, free: 7.715 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001543/0.04146, allocations: 130.8 kB / 373.7 MB, free: 7.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001408/0.04287, allocations: 1.937 MB / 375.6 MB, free: 5.574 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002068/0.04308, allocations: 212.7 kB / 375.8 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.996e-05/0.04318, allocations: 98.62 kB / 375.9 MB, free: 5.203 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.0432, allocations: 8 kB / 375.9 MB, free: 5.195 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/0.04324, allocations: 45.33 kB / 376 MB, free: 5.141 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 3.918e-06/0.04324, allocations: 0 / 376 MB, free: 5.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0003517/0.04359, allocations: 210.7 kB / 376.2 MB, free: 4.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.916e-05/0.04367, allocations: 170.1 kB / 376.3 MB, free: 4.727 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002663/0.04394, allocations: 338 kB / 376.7 MB, free: 4.379 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.457e-05/0.04398, allocations: 45.69 kB / 376.7 MB, free: 4.328 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.0442, allocations: 319.5 kB / 377 MB, free: 4.008 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.44e-05/0.04428, allocations: 95.2 kB / 377.1 MB, free: 3.914 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005455/0.04482, allocations: 115.9 kB / 377.2 MB, free: 3.793 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.04498, allocations: 0.5195 MB / 377.7 MB, free: 3.262 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.611e-05/0.04507, allocations: 57.53 kB / 377.8 MB, free: 3.203 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/0.04528, allocations: 286.5 kB / 378.1 MB, free: 2.84 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002571/0.04554, allocations: 307.8 kB / 378.4 MB, free: 2.461 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.04555, allocations: 4 kB / 378.4 MB, free: 2.457 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0003538/0.0459, allocations: 345.5 kB / 378.7 MB, free: 2.113 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.04593, allocations: 12.77 kB / 378.7 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.04594, allocations: 4 kB / 378.7 MB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.04596, allocations: 8.562 kB / 378.7 MB, free: 2.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.04612, allocations: 67.84 kB / 378.8 MB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.04613, allocations: 11.94 kB / 378.8 MB, free: 2.012 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.04624, allocations: 47.67 kB / 378.9 MB, free: 1.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/0.04626, allocations: 19.98 kB / 378.9 MB, free: 1.945 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,inventory.outflow.stopInflow,producing.cloud.massPort.stopInflow,installedBase.inflow.stopOutflow,inventory.inflow.stopInflow,producing.cloud.massPort.stopOutflow,installedBase.inflow.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,cloud1.massPort.stopInflow,cloud1.massPort.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.0001557/0.04642, allocations: 205.7 kB / 379.1 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.934e-05/0.04649, allocations: 43.77 kB / 379.1 MB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.848e-05/0.04655, allocations: 38.45 kB / 379.2 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.04655, allocations: 4 kB / 379.2 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.04656, allocations: 7.938 kB / 379.2 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.04656, allocations: 0 / 379.2 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000923/0.04749, allocations: 1.065 MB / 380.2 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.04749, allocations: 0 / 380.2 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.0476, allocations: 35.92 kB / 380.3 MB, free: 476 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.0476, allocations: 4 kB / 380.3 MB, free: 472 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.04762, allocations: 11.98 kB / 380.3 MB, free: 460 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.04762, allocations: 4 kB / 380.3 MB, free: 456 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.04763, allocations: 12.19 kB / 380.3 MB, free: 444 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003632/0.04799, allocations: 450 kB / 380.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.936e-05/0.04805, allocations: 43.73 kB / 380.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.872e-05/0.04808, allocations: 15.98 kB / 380.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.099e-05/0.04815, allocations: 8 kB / 380.8 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.615e-05/0.04821, allocations: 31.89 kB / 380.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.04822, allocations: 8.062 kB / 380.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.475e-05/0.04831, allocations: 206.9 kB / 381.1 MB, free: 15.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04831, allocations: 0 / 381.1 MB, free: 15.63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002692/0.04858, allocations: 111.6 kB / 381.2 MB, free: 15.52 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 0.0001168/0.0487, allocations: 129.2 kB / 381.3 MB, free: 15.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002388/0.04894, allocations: 209.8 kB / 381.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.04894, allocations: 0 / 381.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.303e-05/0.04902, allocations: 87.77 kB / 381.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.04937, allocations: 99.23 kB / 381.7 MB, free: 15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008928/0.05026, allocations: 0.7538 MB / 382.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.188e-05/0.05034, allocations: 117 kB / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001268/0.05047, allocations: 55.27 kB / 382.6 MB, free: 13.99 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/0.05065, allocations: 162.1 kB / 382.8 MB, free: 13.83 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/0.05065, allocations: 0 / 382.8 MB, free: 13.83 MB / 362.7 MB Notification: Performance of Templates: time 0.006815/0.05747, allocations: 4.448 MB / 387.2 MB, free: 9.5 MB / 362.7 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=240 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.071734562050551]