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.0009117/0.0009117, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.000891/0.000891, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8995/0.8995, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.09948/0.09948, allocations: 24.13 MB / 283.3 MB, free: 5.477 MB / 266.7 MB " [Timeout remaining time 180] 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: Performance of FrontEnd - loaded program: time 2.715e-06/2.715e-06, allocations: 0 / 420 MB, free: 8.527 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.549e-05/3.82e-05, allocations: 5.797 kB / 420 MB, free: 8.523 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008187/0.008225, allocations: 6.373 MB / 426.4 MB, free: 2.121 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001581/0.009807, allocations: 0.9892 MB / 427.4 MB, free: 1.129 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003233/0.01013, allocations: 27.75 kB / 427.4 MB, free: 1.102 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002551/0.01039, allocations: 111 kB / 427.5 MB, free: 0.9922 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001895/0.01057, allocations: 79.19 kB / 427.6 MB, free: 0.9141 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006231/0.0112, allocations: 235.3 kB / 427.8 MB, free: 0.6836 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.000451/0.01165, allocations: 0.5697 MB / 428.4 MB, free: 116 kB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000294/0.01194, allocations: 209.8 kB / 428.6 MB, free: 15.9 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002908/0.01223, allocations: 343.2 kB / 429 MB, free: 15.56 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001833/0.01242, allocations: 167.5 kB / 429.1 MB, free: 15.4 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.105e-05/0.01247, allocations: 56 kB / 429.2 MB, free: 15.34 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.365e-05/0.01255, allocations: 71.94 kB / 429.2 MB, free: 15.27 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.433e-05/0.01265, allocations: 139.5 kB / 429.4 MB, free: 15.14 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.01276, allocations: 171.6 kB / 429.6 MB, free: 14.97 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006412/0.0134, allocations: 0.584 MB / 430.1 MB, free: 14.38 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.0134, allocations: 0 / 430.1 MB, free: 14.38 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.0134, allocations: 0 / 430.1 MB, free: 14.38 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.01341, allocations: 7.938 kB / 430.1 MB, free: 14.38 MB / 410.7 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.0009293/0.01434, allocations: 0.7195 MB / 430.9 MB, free: 13.62 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.01438, allocations: 8.75 kB / 430.9 MB, free: 13.62 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.11e-05/0.01445, allocations: 86.7 kB / 431 MB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002095/0.01466, allocations: 88.52 kB / 431 MB, free: 13.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004129/0.01507, allocations: 333.3 kB / 431.4 MB, free: 13.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.67e-05/0.01511, allocations: 45.38 kB / 431.4 MB, free: 13.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.545e-05/0.01517, allocations: 60.33 kB / 431.5 MB, free: 12.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005793/0.01575, allocations: 0.5456 MB / 432 MB, free: 12.4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.01576, allocations: 0 / 432 MB, free: 12.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.775e-05/0.01579, allocations: 28 kB / 432 MB, free: 12.37 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.0158, allocations: 12 kB / 432.1 MB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003984/0.01619, allocations: 303.7 kB / 432.4 MB, free: 12.06 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.01793, allocations: 1.653 MB / 434 MB, free: 10.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004231/0.01836, allocations: 295.2 kB / 434.3 MB, free: 10.01 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.01854, allocations: 163.8 kB / 434.5 MB, free: 9.836 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.01856, allocations: 12.17 kB / 434.5 MB, free: 9.824 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.391e-05/0.01859, allocations: 46.72 kB / 434.5 MB, free: 9.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.413e-06/0.01859, allocations: 0 / 434.5 MB, free: 9.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005242/0.01911, allocations: 379.3 kB / 434.9 MB, free: 9.395 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/0.01917, allocations: 166.2 kB / 435 MB, free: 9.195 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002312/0.0194, allocations: 328.3 kB / 435.4 MB, free: 8.867 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.01943, allocations: 42.08 kB / 435.4 MB, free: 8.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.01956, allocations: 261.1 kB / 435.7 MB, free: 8.562 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.235e-05/0.01962, allocations: 95.2 kB / 435.8 MB, free: 8.469 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.461e-05/0.01971, allocations: 106.3 kB / 435.9 MB, free: 8.359 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.994e-05/0.0198, allocations: 350.8 kB / 436.2 MB, free: 8.008 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000194/0.02, allocations: 145.2 kB / 436.3 MB, free: 7.863 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.02024, allocations: 292.6 kB / 436.6 MB, free: 7.535 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003721/0.02061, allocations: 363.8 kB / 437 MB, free: 7.137 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.02061, allocations: 4 kB / 437 MB, free: 7.133 MB / 410.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0005162/0.02113, allocations: 477 kB / 437.5 MB, free: 6.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.02114, allocations: 4.406 kB / 437.5 MB, free: 6.656 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.02115, allocations: 8 kB / 437.5 MB, free: 6.648 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.02116, allocations: 7.938 kB / 437.5 MB, free: 6.641 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.0213, allocations: 71.83 kB / 437.5 MB, free: 6.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.02131, allocations: 7.938 kB / 437.5 MB, free: 6.562 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.02145, allocations: 63.59 kB / 437.6 MB, free: 6.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/0.02147, allocations: 20 kB / 437.6 MB, free: 6.48 MB / 410.7 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.0001464/0.02162, allocations: 194.9 kB / 437.8 MB, free: 6.281 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.833e-05/0.02168, allocations: 43.75 kB / 437.9 MB, free: 6.238 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.138e-05/0.02173, allocations: 43.95 kB / 437.9 MB, free: 6.191 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.02174, allocations: 7.938 kB / 437.9 MB, free: 6.184 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.02174, allocations: 0 / 437.9 MB, free: 6.184 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.02174, allocations: 0 / 437.9 MB, free: 6.184 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.02282, allocations: 1.154 MB / 439.1 MB, free: 4.941 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.02282, allocations: 4 kB / 439.1 MB, free: 4.938 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.02294, allocations: 39.92 kB / 439.1 MB, free: 4.898 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.02295, allocations: 7.984 kB / 439.1 MB, free: 4.891 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.02297, allocations: 12 kB / 439.1 MB, free: 4.879 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.02297, allocations: 0 / 439.1 MB, free: 4.879 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.02297, allocations: 8 kB / 439.1 MB, free: 4.871 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005435/0.02352, allocations: 0.5508 MB / 439.7 MB, free: 4.277 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.203e-05/0.0236, allocations: 63.73 kB / 439.8 MB, free: 4.215 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.751e-05/0.02363, allocations: 11.98 kB / 439.8 MB, free: 4.203 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.02373, allocations: 19.98 kB / 439.8 MB, free: 4.184 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.752e-05/0.0238, allocations: 39.77 kB / 439.8 MB, free: 4.145 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/0.02381, allocations: 16 kB / 439.8 MB, free: 4.129 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001384/0.02395, allocations: 211 kB / 440 MB, free: 3.922 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02395, allocations: 4 kB / 440 MB, free: 3.918 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005363/0.02448, allocations: 115.7 kB / 440.2 MB, free: 3.805 MB / 410.7 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.0006805/0.02516, allocations: 1.12 MB / 441.3 MB, free: 2.637 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004355/0.0256, allocations: 326.7 kB / 441.6 MB, free: 2.312 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.0256, allocations: 0 / 441.6 MB, free: 2.312 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001808/0.02578, allocations: 151.8 kB / 441.7 MB, free: 2.164 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.02616, allocations: 101.4 kB / 441.8 MB, free: 2.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1585/0.1846, allocations: 3.625 MB / 445.5 MB, free: 62.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001852/0.1848, allocations: 228.1 kB / 445.7 MB, free: 62.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001989/0.185, allocations: 58.47 kB / 445.8 MB, free: 62.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.1852, allocations: 160.8 kB / 445.9 MB, free: 62.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.293e-06/0.1852, allocations: 0 / 445.9 MB, free: 62.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02012/0.2053, allocations: 8.516 MB / 454.4 MB, free: 61.12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.117/7.323, allocations: 10.11 kB / 454.4 MB, free: 61.12 MB / 410.7 MB " [Timeout remaining time 653] (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: 9.300851670093834] Failed to read output from testmodel.py, exit status != 0: 7.410610094666481 7.417129905 7.402026671 Calling exit ...