Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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.001378/0.001378, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001601/0.001601, allocations: 208.9 kB / 22.24 MB, free: 5.262 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.453/1.453, allocations: 230.6 MB / 256 MB, free: 7.816 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.2798/0.2798, allocations: 31.53 MB / 344 MB, free: 3.797 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.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",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.002355/0.002355, allocations: 67.89 kB / 480.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3386, allocations: 60.72 MB / 0.5287 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.01018/0.3488, allocations: 6.362 MB / 0.535 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002737/0.3515, allocations: 0.9944 MB / 0.5359 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004943/0.352, allocations: 29.12 kB / 0.536 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004013/0.3524, allocations: 107.9 kB / 0.5361 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000305/0.3527, allocations: 80.2 kB / 0.5361 GB, free: 2.402 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007924/0.3535, allocations: 229.7 kB / 0.5364 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007719/0.3543, allocations: 0.5687 MB / 0.5369 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004703/0.3548, allocations: 202.5 kB / 0.5371 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003168/0.3551, allocations: 237.2 kB / 0.5373 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003364/0.3554, allocations: 205.5 kB / 0.5375 GB, free: 1.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.925e-05/0.3555, allocations: 69.56 kB / 0.5376 GB, free: 1.625 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001767/0.3557, allocations: 62.77 kB / 0.5377 GB, free: 1.625 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.3558, allocations: 128.7 kB / 0.5378 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002426/0.3561, allocations: 209.1 kB / 0.538 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000729/0.3568, allocations: 0.5805 MB / 0.5385 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3568, allocations: 7.938 kB / 0.5385 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3568, allocations: 1.344 kB / 0.5386 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.522e-05/0.3568, allocations: 0 / 0.5386 GB, free: 0.9844 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.001533/0.3584, allocations: 0.7225 MB / 0.5393 GB, free: 400 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.3584, allocations: 11.09 kB / 0.5393 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001031/0.3585, allocations: 91.2 kB / 0.5394 GB, free: 316 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004827/0.359, allocations: 78.09 kB / 0.5394 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007633/0.3598, allocations: 337.2 kB / 0.5398 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.078e-05/0.3598, allocations: 48.91 kB / 0.5398 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.36, allocations: 58.06 kB / 0.5399 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.3613, allocations: 0.5451 MB / 0.5404 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.3613, allocations: 1.375 kB / 0.5404 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.116e-05/0.3614, allocations: 21.5 kB / 0.5404 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/0.3614, allocations: 16.38 kB / 0.5404 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.3624, allocations: 308.6 kB / 0.5407 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003482/0.3659, allocations: 1.643 MB / 0.5423 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009588/0.3668, allocations: 292.6 kB / 0.5426 GB, free: 13.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004743/0.3673, allocations: 171.9 kB / 0.5428 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.943e-05/0.3674, allocations: 4.578 kB / 0.5428 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/0.3674, allocations: 47.83 kB / 0.5428 GB, free: 13.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.986e-06/0.3674, allocations: 0 / 0.5428 GB, free: 13.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001456/0.3689, allocations: 391 kB / 0.5432 GB, free: 13.42 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001273/0.369, allocations: 158.8 kB / 0.5433 GB, free: 13.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005685/0.3696, allocations: 325 kB / 0.5436 GB, free: 13.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.178e-05/0.3696, allocations: 43.53 kB / 0.5437 GB, free: 12.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003121/0.3699, allocations: 268.8 kB / 0.5439 GB, free: 12.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.3701, allocations: 99.55 kB / 0.544 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002428/0.3703, allocations: 104.3 kB / 0.5441 GB, free: 12.58 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000234/0.3705, allocations: 351 kB / 0.5445 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005454/0.3711, allocations: 148.3 kB / 0.5446 GB, free: 12.17 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007271/0.3718, allocations: 288.3 kB / 0.5449 GB, free: 11.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.3729, allocations: 369.4 kB / 0.5452 GB, free: 11.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.85e-06/0.3729, allocations: 5.219 kB / 0.5452 GB, free: 11.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001426/0.3743, allocations: 477.7 kB / 0.5457 GB, free: 11.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.3743, allocations: 5.844 kB / 0.5457 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.3743, allocations: 8.094 kB / 0.5457 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.705e-05/0.3744, allocations: 5.594 kB / 0.5457 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004253/0.3748, allocations: 69.67 kB / 0.5458 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.025e-05/0.3748, allocations: 10.2 kB / 0.5458 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003995/0.3752, allocations: 61.5 kB / 0.5459 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-05/0.3752, allocations: 19.28 kB / 0.5459 GB, free: 11.35 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.0002991/0.3755, allocations: 193.5 kB / 0.5461 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.3757, allocations: 39.55 kB / 0.5461 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001051/0.3758, allocations: 48.48 kB / 0.5461 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3758, allocations: 4.031 kB / 0.5461 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.3758, allocations: 1.125 kB / 0.5461 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.3758, allocations: 2.188 kB / 0.5462 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002459/0.3783, allocations: 1.149 MB / 0.5473 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.3783, allocations: 2.875 kB / 0.5473 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003167/0.3786, allocations: 45.81 kB / 0.5473 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.246e-06/0.3786, allocations: 2.781 kB / 0.5473 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.905e-05/0.3787, allocations: 13.48 kB / 0.5473 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-05/0.3787, allocations: 12.31 kB / 0.5473 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.3787, allocations: 2.625 kB / 0.5474 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/0.38, allocations: 0.5563 MB / 0.5479 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.3802, allocations: 57.12 kB / 0.5479 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.175e-05/0.3803, allocations: 21.67 kB / 0.548 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003549/0.3807, allocations: 21.28 kB / 0.548 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.3808, allocations: 33.02 kB / 0.548 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.3808, allocations: 8 kB / 0.548 GB, free: 9.648 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004035/0.3812, allocations: 210.3 kB / 0.5482 GB, free: 9.512 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3812, allocations: 0 / 0.5482 GB, free: 9.512 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007822/0.382, allocations: 112 kB / 0.5483 GB, free: 9.477 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.001812/0.3838, allocations: 1.132 MB / 0.5494 GB, free: 8.516 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.3849, allocations: 331 kB / 0.5498 GB, free: 8.375 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3849, allocations: 3.938 kB / 0.5498 GB, free: 8.371 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004682/0.3853, allocations: 152.1 kB / 0.5499 GB, free: 8.301 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009767/0.3863, allocations: 104 kB / 0.55 GB, free: 8.254 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007988/0.3943, allocations: 3.638 MB / 0.5536 GB, free: 5.551 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.3947, allocations: 225.9 kB / 0.5538 GB, free: 5.398 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003563/0.395, allocations: 56.56 kB / 0.5538 GB, free: 5.375 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003647/0.3954, allocations: 157.2 kB / 0.554 GB, free: 5.246 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3954, allocations: 1.219 kB / 0.554 GB, free: 5.246 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04887/0.4443, allocations: 8.373 MB / 0.5622 GB, free: 14.15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.96, allocations: 9.328 kB / 0.5622 GB, free: 14.15 MB / 414.1 MB " [Timeout remaining time 648] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.sim & python3 -m fmpy simulate --output-file BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.900166557636112] Failed to read output from testmodel.py, exit status != 0: 12.08570574177429 12.112381702 11.750582301 Calling exit ...