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.0008307/0.0008307, 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.0008464/0.0008464, allocations: 169.9 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.9072/0.9072, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.1371/0.1371, allocations: 24.12 MB / 283.3 MB, free: 5.496 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.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: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 420 MB, free: 8.559 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.653e-05/1.819e-05, allocations: 6.281 kB / 420 MB, free: 8.551 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004519/0.004537, allocations: 5.093 MB / 425.1 MB, free: 3.434 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008446/0.005381, allocations: 0.6111 MB / 425.7 MB, free: 2.82 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001786/0.00556, allocations: 15.88 kB / 425.8 MB, free: 2.805 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002021/0.005762, allocations: 79.27 kB / 425.8 MB, free: 2.727 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.005913, allocations: 75.3 kB / 425.9 MB, free: 2.652 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004263/0.006339, allocations: 191.4 kB / 426.1 MB, free: 2.465 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003394/0.006678, allocations: 475 kB / 426.6 MB, free: 2 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002129/0.006891, allocations: 138.9 kB / 426.7 MB, free: 1.859 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002189/0.00711, allocations: 291.4 kB / 427 MB, free: 1.574 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/0.007272, allocations: 143.5 kB / 427.1 MB, free: 1.434 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.397e-05/0.007316, allocations: 48 kB / 427.2 MB, free: 1.387 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.961e-05/0.007385, allocations: 48 kB / 427.2 MB, free: 1.34 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 7.793e-05/0.007463, allocations: 111.6 kB / 427.3 MB, free: 1.23 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 9.335e-05/0.007557, allocations: 147.6 kB / 427.5 MB, free: 1.086 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003666/0.007923, allocations: 462.5 kB / 427.9 MB, free: 0.6328 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.007929, allocations: 3.984 kB / 427.9 MB, free: 0.6289 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.00793, allocations: 4 kB / 427.9 MB, free: 0.625 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.007936, allocations: 0 / 427.9 MB, free: 0.625 MB / 394.7 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.001074/0.00901, allocations: 0.6225 MB / 428.6 MB, free: 15.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.009047, allocations: 8.75 kB / 428.6 MB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.59e-05/0.009113, allocations: 82.7 kB / 428.6 MB, free: 15.87 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001894/0.009303, allocations: 68.56 kB / 428.7 MB, free: 15.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/0.009611, allocations: 269 kB / 429 MB, free: 15.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.07e-05/0.009641, allocations: 41.38 kB / 429 MB, free: 15.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.712e-05/0.009688, allocations: 44.38 kB / 429.1 MB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/0.01016, allocations: 470.8 kB / 429.5 MB, free: 14.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.01017, allocations: 0 / 429.5 MB, free: 14.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.426e-05/0.01019, allocations: 27.94 kB / 429.5 MB, free: 14.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.0102, allocations: 8 kB / 429.5 MB, free: 14.9 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003276/0.01053, allocations: 247.8 kB / 429.8 MB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.01178, allocations: 1.463 MB / 431.3 MB, free: 13.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003759/0.01216, allocations: 246.3 kB / 431.5 MB, free: 12.85 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.01231, allocations: 143.4 kB / 431.6 MB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.361e-05/0.01233, allocations: 11.94 kB / 431.6 MB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.01235, allocations: 38.56 kB / 431.7 MB, free: 12.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=28): time 2.114e-06/0.01235, allocations: 0 / 431.7 MB, free: 12.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=28): time 0.0004964/0.01285, allocations: 345.6 kB / 432 MB, free: 12.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.752e-05/0.01291, allocations: 158.2 kB / 432.2 MB, free: 12.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.01311, allocations: 273.7 kB / 432.4 MB, free: 11.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.094e-05/0.01314, allocations: 50.06 kB / 432.5 MB, free: 11.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.01325, allocations: 224.5 kB / 432.7 MB, free: 11.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.959e-05/0.0133, allocations: 83.28 kB / 432.8 MB, free: 11.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.514e-05/0.01339, allocations: 106.1 kB / 432.9 MB, free: 11.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.779e-05/0.01348, allocations: 342.8 kB / 433.2 MB, free: 11.01 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001819/0.01366, allocations: 132.9 kB / 433.4 MB, free: 10.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000238/0.0139, allocations: 278.9 kB / 433.6 MB, free: 10.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003482/0.01425, allocations: 338.7 kB / 434 MB, free: 10.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.01425, allocations: 8 kB / 434 MB, free: 10.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004854/0.01474, allocations: 445.7 kB / 434.4 MB, free: 9.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.01476, allocations: 11.53 kB / 434.4 MB, free: 9.723 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.01476, allocations: 8 kB / 434.4 MB, free: 9.715 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.01478, allocations: 7.938 kB / 434.4 MB, free: 9.707 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.01491, allocations: 63.89 kB / 434.5 MB, free: 9.645 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.01492, allocations: 7.938 kB / 434.5 MB, free: 9.637 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.01505, allocations: 63.55 kB / 434.6 MB, free: 9.574 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.289e-05/0.01508, allocations: 19.98 kB / 434.6 MB, free: 9.555 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 (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.0001368/0.01521, allocations: 183 kB / 434.8 MB, free: 9.367 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.746e-05/0.01527, allocations: 31.8 kB / 434.8 MB, free: 9.336 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.296e-05/0.01531, allocations: 38.27 kB / 434.8 MB, free: 9.297 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.01532, allocations: 4 kB / 434.8 MB, free: 9.293 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.01532, allocations: 0 / 434.8 MB, free: 9.293 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.01533, allocations: 7.922 kB / 434.8 MB, free: 9.285 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001239/0.01657, allocations: 1.118 MB / 436 MB, free: 8.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.01657, allocations: 4 kB / 436 MB, free: 8.066 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.01668, allocations: 43.91 kB / 436 MB, free: 8.023 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.608e-06/0.01669, allocations: 4 kB / 436 MB, free: 8.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.01671, allocations: 12 kB / 436 MB, free: 8.008 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.01671, allocations: 11.92 kB / 436 MB, free: 7.996 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.01672, allocations: 7.938 kB / 436 MB, free: 7.988 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004845/0.0172, allocations: 0.5295 MB / 436.6 MB, free: 7.402 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.318e-05/0.01727, allocations: 55.78 kB / 436.6 MB, free: 7.348 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.687e-05/0.0173, allocations: 11.94 kB / 436.6 MB, free: 7.336 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.978e-05/0.0174, allocations: 19.98 kB / 436.7 MB, free: 7.316 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.511e-05/0.01747, allocations: 39.88 kB / 436.7 MB, free: 7.277 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.01748, allocations: 12 kB / 436.7 MB, free: 7.266 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001114/0.01759, allocations: 181.2 kB / 436.9 MB, free: 7.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01759, allocations: 0 / 436.9 MB, free: 7.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000261/0.01785, allocations: 99.72 kB / 437 MB, free: 6.992 MB / 410.7 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.000654/0.0185, allocations: 1.087 MB / 438.1 MB, free: 5.844 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003947/0.0189, allocations: 316 kB / 438.4 MB, free: 5.535 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.0189, allocations: 0 / 438.4 MB, free: 5.535 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000164/0.01906, allocations: 137.3 kB / 438.5 MB, free: 5.402 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003826/0.01945, allocations: 106 kB / 438.6 MB, free: 5.309 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002974/0.02242, allocations: 3.34 MB / 442 MB, free: 1.723 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/0.02256, allocations: 191.4 kB / 442.1 MB, free: 1.512 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001531/0.02271, allocations: 55.23 kB / 442.2 MB, free: 1.457 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001506/0.02286, allocations: 120.5 kB / 442.3 MB, free: 1.34 MB / 410.7 MB Notification: Performance of SimCode: time 1.473e-06/0.02287, allocations: 0 / 442.3 MB, free: 1.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1889/0.2118, allocations: 7.454 MB / 449.8 MB, free: 62.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.135/7.347, allocations: 10.33 kB / 449.8 MB, free: 62.45 MB / 410.7 MB " [Timeout remaining time 653] (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: 9.328181851655245] Failed to read output from testmodel.py, exit status != 0: 7.427303707227111 7.435600168 7.425799304 Calling exit ...