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.001646/0.001646, allocations: 113 kB / 18.94 MB, free: 2.934 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.002/0.002, allocations: 209.2 kB / 22.25 MB, free: 5.082 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.538/1.538, allocations: 230.6 MB / 256 MB, free: 8.012 MB / 206.1 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.3247/0.3247, allocations: 31.55 MB / 344 MB, free: 3.945 MB / 270.1 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) [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.002181/0.002181, allocations: 67.88 kB / 480.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.358/0.3602, allocations: 60.71 MB / 0.5288 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.007639/0.3678, allocations: 5.507 MB / 0.5342 GB, free: 3.777 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001546/0.3694, allocations: 0.6241 MB / 0.5348 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002447/0.3696, allocations: 16.47 kB / 0.5348 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002694/0.3699, allocations: 74.62 kB / 0.5349 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001915/0.3701, allocations: 73.41 kB / 0.535 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005586/0.3706, allocations: 190.5 kB / 0.5352 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004855/0.3711, allocations: 461 kB / 0.5356 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002903/0.3714, allocations: 159.1 kB / 0.5358 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002543/0.3717, allocations: 196.9 kB / 0.5359 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002552/0.3719, allocations: 196.7 kB / 0.5361 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.438e-05/0.372, allocations: 44.84 kB / 0.5362 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.3721, allocations: 55.23 kB / 0.5362 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001056/0.3722, allocations: 106.8 kB / 0.5363 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.3724, allocations: 212.1 kB / 0.5365 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005702/0.3729, allocations: 458.2 kB / 0.537 GB, free: 2.145 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3729, allocations: 4 kB / 0.537 GB, free: 2.141 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3729, allocations: 0 / 0.537 GB, free: 2.141 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.3729, allocations: 1.188 kB / 0.537 GB, free: 2.141 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001098/0.374, allocations: 0.6241 MB / 0.5376 GB, free: 1.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.3741, allocations: 10.47 kB / 0.5376 GB, free: 1.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.613e-05/0.3742, allocations: 81.98 kB / 0.5377 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002916/0.3745, allocations: 65.91 kB / 0.5377 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004018/0.3749, allocations: 271.5 kB / 0.538 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.145e-05/0.3749, allocations: 40 kB / 0.538 GB, free: 1.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.708e-05/0.375, allocations: 47.66 kB / 0.5381 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006459/0.3756, allocations: 421.3 kB / 0.5385 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.3756, allocations: 3.938 kB / 0.5385 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.07e-05/0.3757, allocations: 16.09 kB / 0.5385 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.3757, allocations: 14.59 kB / 0.5385 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005122/0.3762, allocations: 249.5 kB / 0.5387 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002078/0.3783, allocations: 1.617 MB / 0.5403 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006647/0.3789, allocations: 241.2 kB / 0.5406 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003014/0.3792, allocations: 157.4 kB / 0.5407 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.3792, allocations: 7.547 kB / 0.5407 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.358e-05/0.3793, allocations: 40.44 kB / 0.5407 GB, free: 15.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 2.024e-06/0.3793, allocations: 0 / 0.5407 GB, free: 15.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008374/0.3801, allocations: 350.5 kB / 0.5411 GB, free: 15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.3803, allocations: 162.3 kB / 0.5412 GB, free: 14.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/0.3806, allocations: 268.3 kB / 0.5415 GB, free: 14.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.828e-05/0.3806, allocations: 39.2 kB / 0.5415 GB, free: 14.58 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.3808, allocations: 217.2 kB / 0.5417 GB, free: 14.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.498e-05/0.3809, allocations: 91.81 kB / 0.5418 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.381, allocations: 104.6 kB / 0.5419 GB, free: 14.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3812, allocations: 339.1 kB / 0.5422 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003107/0.3815, allocations: 135 kB / 0.5424 GB, free: 13.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004111/0.3819, allocations: 252.4 kB / 0.5426 GB, free: 13.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006054/0.3825, allocations: 349.8 kB / 0.543 GB, free: 13.38 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3825, allocations: 1.031 kB / 0.543 GB, free: 13.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008825/0.3834, allocations: 445.2 kB / 0.5434 GB, free: 13.15 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.3834, allocations: 6.562 kB / 0.5434 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.3834, allocations: 2.406 kB / 0.5434 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/0.3835, allocations: 9.688 kB / 0.5434 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.3837, allocations: 62.2 kB / 0.5435 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.3838, allocations: 9.156 kB / 0.5435 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002821/0.384, allocations: 57.89 kB / 0.5435 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.608e-05/0.3841, allocations: 22.69 kB / 0.5435 GB, free: 13.08 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 (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.00023/0.3843, allocations: 188.9 kB / 0.5437 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.3844, allocations: 29.28 kB / 0.5437 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.898e-05/0.3845, allocations: 37.08 kB / 0.5438 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.3845, allocations: 7.25 kB / 0.5438 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.3845, allocations: 1.062 kB / 0.5438 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3845, allocations: 1.25 kB / 0.5438 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001749/0.3863, allocations: 1.154 MB / 0.5449 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.3863, allocations: 3.656 kB / 0.5449 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.3865, allocations: 39.17 kB / 0.545 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.3865, allocations: 3.781 kB / 0.545 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.63e-05/0.3865, allocations: 22.33 kB / 0.545 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/0.3865, allocations: 9.812 kB / 0.545 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.3865, allocations: 7.875 kB / 0.545 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000924/0.3875, allocations: 0.5325 MB / 0.5455 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.3876, allocations: 63.61 kB / 0.5456 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.717e-05/0.3876, allocations: 10.53 kB / 0.5456 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.3878, allocations: 22.16 kB / 0.5456 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.47e-05/0.3879, allocations: 31.88 kB / 0.5456 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.156e-05/0.3879, allocations: 20.52 kB / 0.5457 GB, free: 11.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001928/0.3881, allocations: 181.3 kB / 0.5458 GB, free: 11.2 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3881, allocations: 0 / 0.5458 GB, free: 11.2 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004465/0.3886, allocations: 92 kB / 0.5459 GB, free: 11.18 MB / 398.1 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.001174/0.3897, allocations: 1.089 MB / 0.547 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006873/0.3904, allocations: 318.1 kB / 0.5473 GB, free: 10.08 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3904, allocations: 1.219 kB / 0.5473 GB, free: 10.08 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003503/0.3908, allocations: 136.3 kB / 0.5474 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005716/0.3914, allocations: 88.69 kB / 0.5475 GB, free: 9.969 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004925/0.3963, allocations: 3.375 MB / 0.5508 GB, free: 7.332 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000551/0.3968, allocations: 0.7974 MB / 0.5516 GB, free: 6.582 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002523/0.3971, allocations: 55.2 kB / 0.5516 GB, free: 6.555 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002217/0.3973, allocations: 119 kB / 0.5517 GB, free: 6.461 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3973, allocations: 0 / 0.5517 GB, free: 6.461 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03921/0.4365, allocations: 6.761 MB / 0.5584 GB, free: 2.227 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.76, allocations: 13.62 kB / 0.5584 GB, free: 2.219 MB / 398.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.750405258964747] Failed to read output from testmodel.py, exit status != 0: 11.872176731936634 11.888632659 11.51238862 Calling exit ...