Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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.001848/0.001848, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002566/0.002566, allocations: 215.8 kB / 22.26 MB, free: 5.125 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.479/1.479, allocations: 230.6 MB / 256 MB, free: 7.957 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.3323/0.3323, allocations: 31.56 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 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: "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_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.00208/0.00208, allocations: 67.89 kB / 480.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.3517, allocations: 60.72 MB / 0.5288 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006519/0.3582, allocations: 5.517 MB / 0.5342 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001331/0.3595, allocations: 0.6174 MB / 0.5348 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002608/0.3598, allocations: 14.81 kB / 0.5348 GB, free: 3.234 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002889/0.3601, allocations: 80.47 kB / 0.5349 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002081/0.3603, allocations: 72.83 kB / 0.535 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005756/0.3609, allocations: 185.9 kB / 0.5352 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005142/0.3614, allocations: 460.7 kB / 0.5356 GB, free: 2.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002637/0.3617, allocations: 159.2 kB / 0.5358 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/0.3619, allocations: 201.7 kB / 0.5359 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002517/0.3621, allocations: 193.3 kB / 0.5361 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.303e-05/0.3622, allocations: 44.38 kB / 0.5362 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.3623, allocations: 54.78 kB / 0.5362 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.739e-05/0.3624, allocations: 110.5 kB / 0.5363 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001572/0.3625, allocations: 212.2 kB / 0.5365 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005193/0.3631, allocations: 462.4 kB / 0.537 GB, free: 2.062 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3631, allocations: 0 / 0.537 GB, free: 2.062 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3631, allocations: 0 / 0.537 GB, free: 2.062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.808e-06/0.3631, allocations: 5.406 kB / 0.537 GB, free: 2.059 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.001058/0.3641, allocations: 0.6207 MB / 0.5376 GB, free: 1.602 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.3642, allocations: 10.38 kB / 0.5376 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.659e-05/0.3643, allocations: 76.69 kB / 0.5377 GB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000292/0.3646, allocations: 65.91 kB / 0.5377 GB, free: 1.516 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000393/0.3649, allocations: 279.6 kB / 0.538 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.047e-05/0.365, allocations: 41.34 kB / 0.538 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.679e-05/0.3651, allocations: 46.09 kB / 0.5381 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006478/0.3657, allocations: 420.5 kB / 0.5385 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.3657, allocations: 0 / 0.5385 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.3657, allocations: 15.88 kB / 0.5385 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.3658, allocations: 14.88 kB / 0.5385 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005095/0.3663, allocations: 254.1 kB / 0.5388 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.3681, allocations: 1.608 MB / 0.5403 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005896/0.3687, allocations: 252.4 kB / 0.5406 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002829/0.369, allocations: 151.5 kB / 0.5407 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.89e-05/0.369, allocations: 3.75 kB / 0.5407 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.3691, allocations: 42.09 kB / 0.5408 GB, free: 15.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.563e-06/0.3691, allocations: 0 / 0.5408 GB, free: 15.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008141/0.3699, allocations: 347.9 kB / 0.5411 GB, free: 14.94 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.37, allocations: 165.9 kB / 0.5412 GB, free: 14.74 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000312/0.3703, allocations: 267.2 kB / 0.5415 GB, free: 14.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.617e-05/0.3704, allocations: 38.89 kB / 0.5415 GB, free: 14.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001722/0.3705, allocations: 217.8 kB / 0.5417 GB, free: 14.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.345e-05/0.3706, allocations: 91.38 kB / 0.5418 GB, free: 14.24 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.3708, allocations: 100.7 kB / 0.5419 GB, free: 14.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.3709, allocations: 347.1 kB / 0.5423 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000307/0.3712, allocations: 135 kB / 0.5424 GB, free: 13.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003978/0.3716, allocations: 251.9 kB / 0.5426 GB, free: 13.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000575/0.3722, allocations: 345.5 kB / 0.543 GB, free: 13.31 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3722, allocations: 1.375 kB / 0.543 GB, free: 13.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008574/0.3731, allocations: 449.3 kB / 0.5434 GB, free: 13.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.3731, allocations: 5.844 kB / 0.5434 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.3731, allocations: 4 kB / 0.5434 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.3731, allocations: 9.938 kB / 0.5434 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002695/0.3734, allocations: 66.69 kB / 0.5435 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.3734, allocations: 8.047 kB / 0.5435 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002658/0.3737, allocations: 54.06 kB / 0.5435 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.733e-05/0.3737, allocations: 21.73 kB / 0.5436 GB, free: 13.01 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.0002345/0.3739, allocations: 189.1 kB / 0.5437 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.3741, allocations: 29.34 kB / 0.5438 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.593e-05/0.3741, allocations: 36.3 kB / 0.5438 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.3741, allocations: 8.281 kB / 0.5438 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.3741, allocations: 1.219 kB / 0.5438 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.3742, allocations: 0.9688 kB / 0.5438 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001725/0.3759, allocations: 1.159 MB / 0.5449 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3759, allocations: 3.281 kB / 0.5449 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002067/0.3761, allocations: 42.25 kB / 0.545 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.3761, allocations: 5.594 kB / 0.545 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.992e-05/0.3761, allocations: 13.62 kB / 0.545 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.3761, allocations: 5.344 kB / 0.545 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.077e-05/0.3761, allocations: 11.34 kB / 0.545 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008674/0.377, allocations: 0.5366 MB / 0.5455 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.3771, allocations: 60.47 kB / 0.5456 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.126e-05/0.3772, allocations: 18.55 kB / 0.5456 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.3774, allocations: 17.36 kB / 0.5456 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.264e-05/0.3775, allocations: 32.48 kB / 0.5457 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.057e-05/0.3775, allocations: 12.16 kB / 0.5457 GB, free: 11.26 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002105/0.3777, allocations: 185 kB / 0.5458 GB, free: 11.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3777, allocations: 4 kB / 0.5459 GB, free: 11.13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004889/0.3782, allocations: 92.12 kB / 0.5459 GB, free: 11.11 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.001189/0.3794, allocations: 1.082 MB / 0.547 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006809/0.3801, allocations: 315.1 kB / 0.5473 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.3801, allocations: 5.938 kB / 0.5473 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002806/0.3803, allocations: 134.1 kB / 0.5474 GB, free: 9.953 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005838/0.3809, allocations: 93.25 kB / 0.5475 GB, free: 9.906 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004996/0.3859, allocations: 3.383 MB / 0.5508 GB, free: 7.262 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004651/0.3864, allocations: 0.7925 MB / 0.5516 GB, free: 6.516 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002163/0.3866, allocations: 60.34 kB / 0.5517 GB, free: 6.484 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001938/0.3868, allocations: 118 kB / 0.5518 GB, free: 6.391 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3868, allocations: 0 / 0.5518 GB, free: 6.391 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03567/0.4225, allocations: 6.753 MB / 0.5584 GB, free: 2.215 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.88, allocations: 6.609 kB / 0.5584 GB, free: 2.211 MB / 398.1 MB " [Timeout remaining time 648] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.759592377115041] Failed to read output from testmodel.py, exit status != 0: 11.999233342008665 12.028137892 11.659507222 Calling exit ...