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.001403/0.001403, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 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.001505/0.001505, allocations: 222.9 kB / 23 MB, free: 4.91 MB / 14.72 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.485/1.485, allocations: 230.6 MB / 256.8 MB, free: 7.832 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.1766/0.1766, allocations: 31.55 MB / 344.7 MB, free: 3.918 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.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: BusinessSimulation requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002099/0.002099, allocations: 67.89 kB / 482 MB, free: 15.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3887/0.3908, allocations: 60.73 MB / 0.53 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008191/0.399, allocations: 6.354 MB / 0.5362 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002353/0.4014, allocations: 1.002 MB / 0.5372 GB, free: 2.797 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005473/0.4019, allocations: 29.03 kB / 0.5372 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003677/0.4023, allocations: 101 kB / 0.5373 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002809/0.4026, allocations: 79.72 kB / 0.5374 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007592/0.4033, allocations: 236.1 kB / 0.5376 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006123/0.4039, allocations: 0.5684 MB / 0.5381 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003779/0.4043, allocations: 202.3 kB / 0.5383 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002764/0.4046, allocations: 236.8 kB / 0.5386 GB, free: 2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002641/0.4049, allocations: 214.5 kB / 0.5388 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.256e-05/0.4049, allocations: 54.34 kB / 0.5388 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.4051, allocations: 66.69 kB / 0.5389 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.4052, allocations: 132.1 kB / 0.539 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001578/0.4053, allocations: 210.4 kB / 0.5392 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005657/0.4059, allocations: 0.5779 MB / 0.5398 GB, free: 1.164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.4059, allocations: 1.375 kB / 0.5398 GB, free: 1.164 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4059, allocations: 0 / 0.5398 GB, free: 1.164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.4059, allocations: 3.938 kB / 0.5398 GB, free: 1.16 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.001221/0.4071, allocations: 0.7228 MB / 0.5405 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.4072, allocations: 14.42 kB / 0.5405 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003211/0.4075, allocations: 82.81 kB / 0.5406 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005055/0.408, allocations: 330.1 kB / 0.5409 GB, free: 252 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.667e-05/0.4081, allocations: 44.12 kB / 0.5409 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.983e-05/0.4081, allocations: 70.48 kB / 0.541 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008814/0.409, allocations: 0.5415 MB / 0.5415 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.409, allocations: 0 / 0.5415 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.322e-05/0.4091, allocations: 21.5 kB / 0.5416 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.4091, allocations: 12.38 kB / 0.5416 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006727/0.4098, allocations: 308.6 kB / 0.5419 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002481/0.4122, allocations: 1.568 MB / 0.5434 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007023/0.4129, allocations: 288.5 kB / 0.5437 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003344/0.4133, allocations: 170.6 kB / 0.5438 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.4133, allocations: 8.703 kB / 0.5438 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/0.4134, allocations: 34.17 kB / 0.5439 GB, free: 13.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.094e-06/0.4134, allocations: 0 / 0.5439 GB, free: 13.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001013/0.4144, allocations: 399.6 kB / 0.5443 GB, free: 13.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.4145, allocations: 158.7 kB / 0.5444 GB, free: 13.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003826/0.4149, allocations: 291.3 kB / 0.5447 GB, free: 13.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.245e-05/0.4149, allocations: 43.92 kB / 0.5447 GB, free: 13.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/0.4152, allocations: 273.4 kB / 0.545 GB, free: 13.08 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.4153, allocations: 96.58 kB / 0.5451 GB, free: 13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.4154, allocations: 107 kB / 0.5452 GB, free: 12.92 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.4156, allocations: 343.4 kB / 0.5455 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003482/0.416, allocations: 147.8 kB / 0.5456 GB, free: 12.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004576/0.4164, allocations: 287.9 kB / 0.5459 GB, free: 12.28 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006602/0.4171, allocations: 373.7 kB / 0.5463 GB, free: 12.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.4171, allocations: 1.344 kB / 0.5463 GB, free: 12.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009338/0.418, allocations: 476.3 kB / 0.5467 GB, free: 11.78 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.418, allocations: 6.875 kB / 0.5467 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.4181, allocations: 6.562 kB / 0.5467 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.318e-05/0.4181, allocations: 5.469 kB / 0.5468 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002912/0.4184, allocations: 70.7 kB / 0.5468 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.4184, allocations: 5.656 kB / 0.5468 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002993/0.4187, allocations: 65.62 kB / 0.5469 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.717e-05/0.4187, allocations: 22.56 kB / 0.5469 GB, free: 11.7 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.000276/0.419, allocations: 193.2 kB / 0.5471 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.4191, allocations: 34.91 kB / 0.5471 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.619e-05/0.4192, allocations: 43.39 kB / 0.5472 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.4192, allocations: 2.844 kB / 0.5472 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.4192, allocations: 1.344 kB / 0.5472 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.4192, allocations: 1.531 kB / 0.5472 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/0.4211, allocations: 1.082 MB / 0.5482 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.4211, allocations: 2.75 kB / 0.5482 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002236/0.4213, allocations: 45.75 kB / 0.5483 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.4213, allocations: 4.219 kB / 0.5483 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.935e-05/0.4213, allocations: 8.281 kB / 0.5483 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.406e-06/0.4213, allocations: 16.61 kB / 0.5483 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.4213, allocations: 2.875 kB / 0.5483 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009993/0.4223, allocations: 0.5469 MB / 0.5488 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.4225, allocations: 56.38 kB / 0.5489 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.974e-05/0.4225, allocations: 9.625 kB / 0.5489 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001987/0.4227, allocations: 21.67 kB / 0.5489 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.309e-05/0.4228, allocations: 39.47 kB / 0.549 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.4228, allocations: 16.72 kB / 0.549 GB, free: 10.06 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002349/0.4231, allocations: 188.1 kB / 0.5492 GB, free: 9.938 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4231, allocations: 0 / 0.5492 GB, free: 9.938 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005029/0.4236, allocations: 116.1 kB / 0.5493 GB, free: 9.898 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.0001669/0.4237, allocations: 122.3 kB / 0.5494 GB, free: 9.785 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007819/0.4245, allocations: 337.2 kB / 0.5497 GB, free: 9.637 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4245, allocations: 1.125 kB / 0.5497 GB, free: 9.637 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003183/0.4248, allocations: 141.7 kB / 0.5498 GB, free: 9.574 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006387/0.4255, allocations: 116.5 kB / 0.55 GB, free: 9.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/0.4271, allocations: 0.8714 MB / 0.5508 GB, free: 8.875 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.4274, allocations: 224.1 kB / 0.551 GB, free: 8.727 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.4275, allocations: 39.53 kB / 0.5511 GB, free: 8.715 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4275, allocations: 0 / 0.5511 GB, free: 8.715 MB / 398.1 MB Notification: Performance of Templates: time 0.01262/0.4401, allocations: 5.297 MB / 0.5562 GB, free: 5.484 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 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.8671397739090025] Failed to read output from testmodel.py, exit status != 0: 0.4493777281604707 0.464918203 0.055702165000000005 Calling exit ...