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.001744/0.001744, allocations: 104.8 kB / 16.45 MB, free: 6.449 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.00218/0.00218, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.508/1.508, allocations: 230.6 MB / 252.8 MB, free: 8.949 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.2648/0.2648, allocations: 31.56 MB / 340.4 MB, free: 5.125 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.002053/0.002053, allocations: 71.89 kB / 475.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3421, allocations: 60.67 MB / 0.5237 GB, free: 6.992 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005504/0.3476, allocations: 5.468 MB / 0.5291 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.3488, allocations: 0.6252 MB / 0.5297 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002043/0.349, allocations: 12.06 kB / 0.5297 GB, free: 2.648 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002317/0.3492, allocations: 79.44 kB / 0.5298 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.3494, allocations: 71.92 kB / 0.5298 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004938/0.3499, allocations: 195.7 kB / 0.53 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00054/0.3504, allocations: 456.4 kB / 0.5305 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002788/0.3507, allocations: 155.2 kB / 0.5306 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002431/0.3509, allocations: 198.6 kB / 0.5308 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002304/0.3512, allocations: 198.5 kB / 0.531 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.186e-05/0.3512, allocations: 44.31 kB / 0.531 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.399e-05/0.3513, allocations: 51.09 kB / 0.5311 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.257e-05/0.3514, allocations: 103.4 kB / 0.5312 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001501/0.3516, allocations: 224.7 kB / 0.5314 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005118/0.3521, allocations: 458.9 kB / 0.5318 GB, free: 1.488 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3521, allocations: 0 / 0.5318 GB, free: 1.488 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3521, allocations: 0 / 0.5318 GB, free: 1.488 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.3521, allocations: 1.438 kB / 0.5318 GB, free: 1.488 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.001056/0.3532, allocations: 0.6956 MB / 0.5325 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.3532, allocations: 9.125 kB / 0.5325 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.248e-05/0.3533, allocations: 81.91 kB / 0.5326 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003115/0.3536, allocations: 66.06 kB / 0.5327 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003664/0.3539, allocations: 332.2 kB / 0.533 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.402e-05/0.354, allocations: 41.09 kB / 0.533 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.829e-05/0.354, allocations: 46.38 kB / 0.5331 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006417/0.3547, allocations: 415 kB / 0.5335 GB, free: 316 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.3547, allocations: 1.469 kB / 0.5335 GB, free: 316 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.171e-05/0.3547, allocations: 20.19 kB / 0.5335 GB, free: 300 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.3547, allocations: 9.75 kB / 0.5335 GB, free: 300 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005179/0.3553, allocations: 253.6 kB / 0.5337 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002226/0.3575, allocations: 1.664 MB / 0.5353 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005941/0.3581, allocations: 242.6 kB / 0.5356 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002967/0.3584, allocations: 151.2 kB / 0.5357 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.3584, allocations: 4.5 kB / 0.5357 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.178e-05/0.3584, allocations: 41.62 kB / 0.5358 GB, free: 14.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.713e-06/0.3585, allocations: 4 kB / 0.5358 GB, free: 14.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008821/0.3593, allocations: 350.3 kB / 0.5361 GB, free: 14.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.3594, allocations: 158.7 kB / 0.5363 GB, free: 14.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003414/0.3598, allocations: 267.7 kB / 0.5365 GB, free: 14.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.091e-05/0.3598, allocations: 41.62 kB / 0.5366 GB, free: 14.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001995/0.36, allocations: 221.7 kB / 0.5368 GB, free: 13.94 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.32e-05/0.3601, allocations: 93.75 kB / 0.5369 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.3603, allocations: 102.1 kB / 0.5369 GB, free: 13.81 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.3605, allocations: 344 kB / 0.5373 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003397/0.3608, allocations: 138.3 kB / 0.5374 GB, free: 13.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000426/0.3613, allocations: 246.2 kB / 0.5376 GB, free: 13.23 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006192/0.3619, allocations: 349.1 kB / 0.538 GB, free: 12.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3619, allocations: 1.062 kB / 0.538 GB, free: 12.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008858/0.3628, allocations: 453.1 kB / 0.5384 GB, free: 12.74 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.3628, allocations: 7.719 kB / 0.5384 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.3628, allocations: 3.594 kB / 0.5384 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/0.3628, allocations: 9.781 kB / 0.5384 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002598/0.3631, allocations: 62.19 kB / 0.5385 GB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/0.3631, allocations: 9.953 kB / 0.5385 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002804/0.3634, allocations: 53.19 kB / 0.5385 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.346e-05/0.3634, allocations: 22.38 kB / 0.5386 GB, free: 12.67 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.0002351/0.3636, allocations: 189.2 kB / 0.5388 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.3637, allocations: 29.12 kB / 0.5388 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.861e-05/0.3638, allocations: 36.67 kB / 0.5388 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.3638, allocations: 7.969 kB / 0.5388 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.3638, allocations: 1.094 kB / 0.5388 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.3638, allocations: 5.219 kB / 0.5388 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001709/0.3656, allocations: 1.191 MB / 0.54 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.3656, allocations: 7.109 kB / 0.54 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002015/0.3658, allocations: 38.25 kB / 0.54 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.3658, allocations: 4.312 kB / 0.54 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.807e-05/0.3658, allocations: 19.59 kB / 0.5401 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.3658, allocations: 3.312 kB / 0.5401 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/0.3658, allocations: 8.531 kB / 0.5401 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008945/0.3667, allocations: 0.5371 MB / 0.5406 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.3668, allocations: 135.5 kB / 0.5407 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.497e-05/0.3669, allocations: 10.34 kB / 0.5407 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.3671, allocations: 17.98 kB / 0.5407 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.251e-05/0.3672, allocations: 38.72 kB / 0.5408 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.3672, allocations: 13.44 kB / 0.5408 GB, free: 10.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000201/0.3674, allocations: 180.5 kB / 0.541 GB, free: 10.67 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3674, allocations: 0 / 0.541 GB, free: 10.67 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004523/0.3679, allocations: 95.16 kB / 0.5411 GB, free: 10.64 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.001353/0.3692, allocations: 1.079 MB / 0.5421 GB, free: 9.695 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007157/0.3699, allocations: 310.1 kB / 0.5424 GB, free: 9.559 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.3699, allocations: 1.312 kB / 0.5424 GB, free: 9.559 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002863/0.3702, allocations: 138.3 kB / 0.5425 GB, free: 9.496 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005833/0.3708, allocations: 97.81 kB / 0.5426 GB, free: 9.445 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004732/0.3755, allocations: 3.373 MB / 0.5459 GB, free: 6.816 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004552/0.376, allocations: 0.7933 MB / 0.5467 GB, free: 6.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002029/0.3762, allocations: 55.7 kB / 0.5468 GB, free: 6.043 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001934/0.3764, allocations: 113.6 kB / 0.5469 GB, free: 5.953 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3764, allocations: 9.375 kB / 0.5469 GB, free: 5.945 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03215/0.4085, allocations: 6.423 MB / 0.5531 GB, free: 2.793 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.447/8.855, allocations: 6.141 kB / 0.5532 GB, free: 2.789 MB / 398.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.800251149004907] Failed to read output from testmodel.py, exit status != 0: 8.930275381993852 8.952470205 8.596202449 Calling exit ...