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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 115.5 kB / 18.88 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 193.5 kB / 22.17 MB, free: 5.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 225.6 MB / 250.9 MB, free: 13.3 MB / 206.1 MB " [Timeout remaining time 178] 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.214/0.214, allocations: 31.57 MB / 337.7 MB, free: 9.637 MB / 270.1 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001925/0.001925, allocations: 67.89 kB / 472.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3494, allocations: 59.49 MB / 0.5196 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006828/0.3562, allocations: 6.875 MB / 0.5263 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001952/0.3582, allocations: 1.01 MB / 0.5273 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004113/0.3586, allocations: 22.03 kB / 0.5273 GB, free: 3.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003046/0.3589, allocations: 104.7 kB / 0.5274 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002267/0.3591, allocations: 83.98 kB / 0.5275 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007194/0.3598, allocations: 244.3 kB / 0.5277 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005738/0.3604, allocations: 0.5648 MB / 0.5283 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003329/0.3607, allocations: 225.2 kB / 0.5285 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002277/0.361, allocations: 223.3 kB / 0.5287 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002681/0.3612, allocations: 239.3 kB / 0.5289 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.219e-05/0.3613, allocations: 56.84 kB / 0.529 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001107/0.3614, allocations: 66.83 kB / 0.529 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.3615, allocations: 133 kB / 0.5292 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001898/0.3617, allocations: 269.9 kB / 0.5294 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007242/0.3624, allocations: 0.5685 MB / 0.53 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.3624, allocations: 0.7031 kB / 0.53 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3624, allocations: 0.625 kB / 0.53 GB, free: 1.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.3625, allocations: 0 / 0.53 GB, free: 1.91 MB / 382.1 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.001326/0.3638, allocations: 0.799 MB / 0.5308 GB, free: 1.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.3638, allocations: 8.719 kB / 0.5308 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003442/0.3642, allocations: 85.56 kB / 0.5308 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005607/0.3647, allocations: 404.1 kB / 0.5312 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.094e-05/0.3648, allocations: 49.19 kB / 0.5313 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.852e-05/0.3649, allocations: 62.64 kB / 0.5313 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008216/0.3657, allocations: 0.49 MB / 0.5318 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.3657, allocations: 3.938 kB / 0.5318 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.986e-05/0.3657, allocations: 21.75 kB / 0.5318 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.3658, allocations: 13.23 kB / 0.5319 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006974/0.3664, allocations: 304.1 kB / 0.5321 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002638/0.3691, allocations: 1.859 MB / 0.534 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007062/0.3698, allocations: 298.3 kB / 0.5342 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003435/0.3701, allocations: 167.8 kB / 0.5344 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.3702, allocations: 8.734 kB / 0.5344 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/0.3702, allocations: 46.27 kB / 0.5345 GB, free: 14.85 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.683e-06/0.3702, allocations: 0.5625 kB / 0.5345 GB, free: 14.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009798/0.3712, allocations: 388 kB / 0.5348 GB, free: 14.69 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.3713, allocations: 158.1 kB / 0.535 GB, free: 14.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004606/0.3718, allocations: 319.1 kB / 0.5353 GB, free: 14.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.3719, allocations: 44.73 kB / 0.5353 GB, free: 14.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002596/0.3722, allocations: 259.2 kB / 0.5356 GB, free: 14.08 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/0.3724, allocations: 103.8 kB / 0.5357 GB, free: 14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001808/0.3725, allocations: 102.4 kB / 0.5358 GB, free: 13.94 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.3727, allocations: 351.6 kB / 0.5361 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003503/0.3731, allocations: 146.1 kB / 0.5362 GB, free: 13.56 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004451/0.3735, allocations: 267.8 kB / 0.5365 GB, free: 13.38 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006289/0.3742, allocations: 362.3 kB / 0.5368 GB, free: 13.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.3742, allocations: 1.281 kB / 0.5368 GB, free: 13.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009428/0.3751, allocations: 474.5 kB / 0.5373 GB, free: 12.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.3751, allocations: 13.88 kB / 0.5373 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.3751, allocations: 7.922 kB / 0.5373 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/0.3752, allocations: 9.281 kB / 0.5373 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002947/0.3755, allocations: 70.42 kB / 0.5374 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.3755, allocations: 9.984 kB / 0.5374 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003096/0.3758, allocations: 61.08 kB / 0.5375 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.71e-05/0.3758, allocations: 20.17 kB / 0.5375 GB, free: 12.88 MB / 398.1 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 (63): * Single equations (assignments): 63 * 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.0002386/0.3761, allocations: 195 kB / 0.5377 GB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.3762, allocations: 44.14 kB / 0.5377 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.985e-05/0.3763, allocations: 41.14 kB / 0.5378 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3763, allocations: 3.406 kB / 0.5378 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.3763, allocations: 1.969 kB / 0.5378 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.3763, allocations: 2.672 kB / 0.5378 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001794/0.3781, allocations: 1.217 MB / 0.5389 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3781, allocations: 3.406 kB / 0.539 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002295/0.3783, allocations: 49.52 kB / 0.539 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.185e-06/0.3783, allocations: 4.25 kB / 0.539 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.081e-05/0.3783, allocations: 10.58 kB / 0.539 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.736e-06/0.3784, allocations: 7.938 kB / 0.539 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3784, allocations: 2.5 kB / 0.539 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009411/0.3793, allocations: 0.5558 MB / 0.5396 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.3795, allocations: 138.9 kB / 0.5397 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.438e-05/0.3795, allocations: 14.75 kB / 0.5397 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.3797, allocations: 26.11 kB / 0.5397 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.797e-05/0.3798, allocations: 35.58 kB / 0.5398 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.04e-05/0.3798, allocations: 13.17 kB / 0.5398 GB, free: 11.22 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002406/0.3801, allocations: 213.4 kB / 0.54 GB, free: 11.11 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3801, allocations: 1.219 kB / 0.54 GB, free: 11.11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004404/0.3805, allocations: 111.1 kB / 0.5401 GB, free: 11.07 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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,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 (31): * Single equations (assignments): 31 * 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.0001363/0.3807, allocations: 116.1 kB / 0.5402 GB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007395/0.3814, allocations: 338.2 kB / 0.5405 GB, free: 10.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3814, allocations: 1.094 kB / 0.5405 GB, free: 10.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003219/0.3817, allocations: 150.3 kB / 0.5407 GB, free: 10.81 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000652/0.3824, allocations: 104.8 kB / 0.5408 GB, free: 10.78 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.3839, allocations: 0.825 MB / 0.5416 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005477/0.3844, allocations: 0.8268 MB / 0.5424 GB, free: 9.531 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002315/0.3847, allocations: 62.03 kB / 0.5424 GB, free: 9.516 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.3848, allocations: 38.5 kB / 0.5425 GB, free: 9.504 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3848, allocations: 0.9688 kB / 0.5425 GB, free: 9.504 MB / 398.1 MB Notification: Performance of Templates: time 0.009979/0.3947, allocations: 4.484 MB / 0.5469 GB, free: 7.754 MB / 398.1 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=480 -s cvode -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.83104093093425] Failed to read output from testmodel.py, exit status != 0: 0.4030292872339487 0.42296725999999996 0.056026191 Calling exit ...