Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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.0009977/0.0009977, 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.00117/0.00117, 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.9046/0.9046, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.09764/0.09764, allocations: 24.13 MB / 283.3 MB, free: 5.512 MB / 266.7 MB " [Timeout remaining time 180] 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.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 420 MB, free: 5.523 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.081e-05/2.294e-05, allocations: 2.281 kB / 420 MB, free: 5.52 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008361/0.008384, allocations: 6.367 MB / 426.4 MB, free: 1.234 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002669/0.01105, allocations: 1.003 MB / 427.4 MB, free: 0.5 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006239/0.01168, allocations: 29.03 kB / 427.4 MB, free: 496 kB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003774/0.01205, allocations: 99.98 kB / 427.5 MB, free: 440 kB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002971/0.01235, allocations: 88.47 kB / 427.6 MB, free: 368 kB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008275/0.01318, allocations: 231.7 kB / 427.9 MB, free: 228 kB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000765/0.01394, allocations: 0.5686 MB / 428.4 MB, free: 15.93 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004716/0.01442, allocations: 210.7 kB / 428.6 MB, free: 15.82 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006323/0.01505, allocations: 339.4 kB / 429 MB, free: 15.66 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003867/0.01543, allocations: 170.6 kB / 429.1 MB, free: 15.59 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.01555, allocations: 61.45 kB / 429.2 MB, free: 15.59 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.0157, allocations: 62.38 kB / 429.2 MB, free: 15.59 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001794/0.01588, allocations: 136.2 kB / 429.4 MB, free: 15.49 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003027/0.01618, allocations: 174.5 kB / 429.5 MB, free: 15.4 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009359/0.01712, allocations: 0.5902 MB / 430.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.01712, allocations: 0 / 430.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.01712, allocations: 0 / 430.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.848e-05/0.01714, allocations: 0 / 430.1 MB, free: 15.12 MB / 346.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.001552/0.0187, allocations: 0.7141 MB / 430.9 MB, free: 14.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.712e-05/0.01875, allocations: 15.36 kB / 430.9 MB, free: 14.6 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001285/0.01888, allocations: 89.98 kB / 431 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003777/0.01926, allocations: 81.98 kB / 431 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007232/0.01998, allocations: 339.1 kB / 431.4 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.517e-05/0.02005, allocations: 48.66 kB / 431.4 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.02015, allocations: 61.95 kB / 431.5 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009709/0.02112, allocations: 0.5387 MB / 432 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.02114, allocations: 5.25 kB / 432 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.315e-05/0.02119, allocations: 21.38 kB / 432 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.0212, allocations: 14 kB / 432.1 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007121/0.02191, allocations: 306.2 kB / 432.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002666/0.02458, allocations: 1.644 MB / 434 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007267/0.02531, allocations: 288.7 kB / 434.3 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003346/0.02564, allocations: 171.5 kB / 434.4 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.02567, allocations: 4.484 kB / 434.4 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/0.0257, allocations: 48.77 kB / 434.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 3.396e-06/0.0257, allocations: 0 / 434.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009846/0.02669, allocations: 390.7 kB / 434.9 MB, free: 12.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.429e-05/0.02678, allocations: 160.6 kB / 435 MB, free: 11.89 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004413/0.02722, allocations: 318.4 kB / 435.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.132e-05/0.02727, allocations: 44.89 kB / 435.4 MB, free: 11.67 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002198/0.02749, allocations: 263.1 kB / 435.6 MB, free: 11.45 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.0276, allocations: 99.22 kB / 435.7 MB, free: 11.38 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001834/0.02778, allocations: 104 kB / 435.8 MB, free: 11.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.02792, allocations: 351.4 kB / 436.2 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003857/0.02831, allocations: 145.3 kB / 436.3 MB, free: 10.94 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004421/0.02875, allocations: 293.6 kB / 436.6 MB, free: 10.72 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006661/0.02942, allocations: 367 kB / 437 MB, free: 10.46 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.02942, allocations: 1.156 kB / 437 MB, free: 10.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009987/0.03042, allocations: 478.5 kB / 437.4 MB, free: 10.22 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.03045, allocations: 6.75 kB / 437.5 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.03046, allocations: 3.312 kB / 437.5 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.038e-05/0.03049, allocations: 13.61 kB / 437.5 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002722/0.03077, allocations: 70.78 kB / 437.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.037e-05/0.03079, allocations: 13.45 kB / 437.5 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002965/0.03108, allocations: 58.36 kB / 437.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.167e-05/0.03113, allocations: 22.7 kB / 437.6 MB, free: 10.13 MB / 346.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.0002569/0.03138, allocations: 200.4 kB / 437.8 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.0315, allocations: 36.08 kB / 437.9 MB, free: 9.941 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.907e-05/0.03158, allocations: 41.36 kB / 437.9 MB, free: 9.906 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.03159, allocations: 7.875 kB / 437.9 MB, free: 9.902 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.0316, allocations: 0.8125 kB / 437.9 MB, free: 9.902 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.03161, allocations: 9.328 kB / 437.9 MB, free: 9.895 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001749/0.03336, allocations: 1.146 MB / 439.1 MB, free: 8.941 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.03336, allocations: 1.844 kB / 439.1 MB, free: 8.941 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002122/0.03358, allocations: 42.22 kB / 439.1 MB, free: 8.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.546e-06/0.03358, allocations: 12.06 kB / 439.1 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.009e-05/0.03361, allocations: 9.875 kB / 439.1 MB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.925e-06/0.03362, allocations: 7.297 kB / 439.1 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.03363, allocations: 2.156 kB / 439.1 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000906/0.03453, allocations: 0.5524 MB / 439.7 MB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001459/0.03468, allocations: 65.02 kB / 439.8 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.748e-05/0.03473, allocations: 14.25 kB / 439.8 MB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.03492, allocations: 20.61 kB / 439.8 MB, free: 8.453 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.03502, allocations: 40.44 kB / 439.8 MB, free: 8.426 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.03505, allocations: 12 kB / 439.8 MB, free: 8.422 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002638/0.03531, allocations: 210.3 kB / 440 MB, free: 8.281 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.03531, allocations: 5 kB / 440 MB, free: 8.277 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005625/0.03587, allocations: 107.9 kB / 440.2 MB, free: 8.246 MB / 346.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.001196/0.03707, allocations: 1.123 MB / 441.3 MB, free: 7.293 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007573/0.03783, allocations: 328.8 kB / 441.6 MB, free: 7.156 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.03783, allocations: 1.594 kB / 441.6 MB, free: 7.156 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003049/0.03813, allocations: 153.2 kB / 441.7 MB, free: 7.086 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006671/0.0388, allocations: 106 kB / 441.9 MB, free: 7.031 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003934/0.04274, allocations: 3.621 MB / 445.5 MB, free: 4.348 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001808/0.04292, allocations: 224.7 kB / 445.7 MB, free: 4.199 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002045/0.04312, allocations: 65.14 kB / 445.8 MB, free: 4.164 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.0433, allocations: 155.1 kB / 445.9 MB, free: 4.039 MB / 346.7 MB Notification: Performance of SimCode: time 1.493e-06/0.0433, allocations: 0 / 445.9 MB, free: 4.039 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02623/0.06952, allocations: 8.513 MB / 454.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.162/7.231, allocations: 6.688 kB / 454.4 MB, free: 12.47 MB / 362.7 MB " [Timeout remaining time 653] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & python3 -m fmpy simulate --output-file BusinessSimulation_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_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.298675181344151] Failed to read output from testmodel.py, exit status != 0: 7.318184622563422 7.327059876 7.307037555 Calling exit ...