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.001314/0.001314, allocations: 116.1 kB / 17.17 MB, free: 6 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.001372/0.001372, allocations: 209.6 kB / 20.13 MB, free: 3.055 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.469/1.469, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.1728/0.1728, allocations: 31.55 MB / 341.1 MB, free: 9.996 MB / 270.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="cs",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.002011/0.002011, allocations: 64.14 kB / 476.3 MB, free: 27.85 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1356, allocations: 60.68 MB / 0.5244 GB, free: 4.125 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.00913/0.1447, allocations: 6.891 MB / 0.5312 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002339/0.147, allocations: 1.001 MB / 0.5321 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000433/0.1475, allocations: 27.75 kB / 0.5322 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003423/0.1478, allocations: 111 kB / 0.5323 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002266/0.148, allocations: 75.31 kB / 0.5323 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006658/0.1487, allocations: 235.4 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006831/0.1494, allocations: 0.562 MB / 0.5331 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003993/0.1498, allocations: 221.7 kB / 0.5333 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002876/0.1501, allocations: 231.1 kB / 0.5335 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002948/0.1504, allocations: 234.9 kB / 0.5338 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.215e-05/0.1505, allocations: 64 kB / 0.5338 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001167/0.1506, allocations: 67.98 kB / 0.5339 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.1507, allocations: 131.5 kB / 0.534 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002493/0.151, allocations: 258.7 kB / 0.5343 GB, free: 10 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007581/0.1517, allocations: 0.5757 MB / 0.5348 GB, free: 9.422 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1517, allocations: 0 / 0.5348 GB, free: 9.422 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1517, allocations: 0 / 0.5348 GB, free: 9.422 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.1517, allocations: 0 / 0.5348 GB, free: 9.422 MB / 398.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.001466/0.1532, allocations: 0.8026 MB / 0.5356 GB, free: 8.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.1533, allocations: 8.031 kB / 0.5356 GB, free: 8.562 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.835e-05/0.1533, allocations: 17.19 kB / 0.5356 GB, free: 8.543 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001107/0.1534, allocations: 86.7 kB / 0.5357 GB, free: 8.449 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003397/0.1537, allocations: 84.53 kB / 0.5358 GB, free: 8.367 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006236/0.1544, allocations: 412.2 kB / 0.5362 GB, free: 7.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.136e-05/0.1544, allocations: 48.94 kB / 0.5362 GB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.9e-05/0.1545, allocations: 55.94 kB / 0.5363 GB, free: 7.828 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009016/0.1554, allocations: 0.4954 MB / 0.5368 GB, free: 7.305 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.1554, allocations: 3.938 kB / 0.5368 GB, free: 7.301 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.162e-05/0.1555, allocations: 20 kB / 0.5368 GB, free: 7.281 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.551e-05/0.1555, allocations: 16 kB / 0.5368 GB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006914/0.1562, allocations: 307.7 kB / 0.5371 GB, free: 6.965 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00255/0.1587, allocations: 1.868 MB / 0.5389 GB, free: 5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006946/0.1594, allocations: 287.2 kB / 0.5392 GB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003346/0.1597, allocations: 174.9 kB / 0.5394 GB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.688e-05/0.1598, allocations: 8.172 kB / 0.5394 GB, free: 4.496 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.1598, allocations: 42.73 kB / 0.5394 GB, free: 4.445 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.834e-06/0.1598, allocations: 4 kB / 0.5394 GB, free: 4.441 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009499/0.1608, allocations: 383.3 kB / 0.5398 GB, free: 4.062 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.1609, allocations: 158.2 kB / 0.5399 GB, free: 3.871 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003827/0.1613, allocations: 324.3 kB / 0.5402 GB, free: 3.543 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.007e-05/0.1613, allocations: 42.08 kB / 0.5403 GB, free: 3.496 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000215/0.1615, allocations: 265.1 kB / 0.5405 GB, free: 3.234 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.1616, allocations: 99.2 kB / 0.5406 GB, free: 3.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/0.1618, allocations: 110.2 kB / 0.5407 GB, free: 3.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.162, allocations: 346.8 kB / 0.5411 GB, free: 2.672 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003464/0.1623, allocations: 141 kB / 0.5412 GB, free: 2.535 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004471/0.1628, allocations: 261.9 kB / 0.5415 GB, free: 2.238 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006545/0.1634, allocations: 370.8 kB / 0.5418 GB, free: 1.836 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1634, allocations: 0 / 0.5418 GB, free: 1.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000965/0.1644, allocations: 479.5 kB / 0.5423 GB, free: 1.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.1644, allocations: 8 kB / 0.5423 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.1644, allocations: 4 kB / 0.5423 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.1644, allocations: 7.984 kB / 0.5423 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003093/0.1648, allocations: 67.84 kB / 0.5423 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.544e-05/0.1648, allocations: 12.33 kB / 0.5424 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002896/0.1651, allocations: 67.55 kB / 0.5424 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.899e-05/0.1651, allocations: 23.98 kB / 0.5424 GB, free: 1.176 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.0002474/0.1653, allocations: 191.5 kB / 0.5426 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.1655, allocations: 39.7 kB / 0.5427 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.884e-05/0.1656, allocations: 39.86 kB / 0.5427 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.1656, allocations: 4 kB / 0.5427 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.1656, allocations: 8 kB / 0.5427 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.1656, allocations: 7.984 kB / 0.5427 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001825/0.1674, allocations: 1.217 MB / 0.5439 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.1674, allocations: 0 / 0.5439 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000237/0.1676, allocations: 47.91 kB / 0.544 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.1677, allocations: 4 kB / 0.544 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.159e-05/0.1677, allocations: 11.94 kB / 0.544 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.1677, allocations: 4 kB / 0.544 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.1677, allocations: 4 kB / 0.544 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009866/0.1687, allocations: 0.5611 MB / 0.5445 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001569/0.1688, allocations: 140.8 kB / 0.5447 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.148e-05/0.1689, allocations: 15.94 kB / 0.5447 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.1691, allocations: 19.98 kB / 0.5447 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.76e-05/0.1692, allocations: 39.83 kB / 0.5447 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.18e-05/0.1692, allocations: 12 kB / 0.5447 GB, free: 14.65 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002521/0.1695, allocations: 211.1 kB / 0.5449 GB, free: 14.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1695, allocations: 0 / 0.5449 GB, free: 14.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004422/0.1699, allocations: 111.7 kB / 0.5451 GB, free: 14.34 MB / 414.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.001296/0.1712, allocations: 1.116 MB / 0.5461 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007999/0.172, allocations: 331 kB / 0.5465 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.172, allocations: 0 / 0.5465 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000329/0.1723, allocations: 151.8 kB / 0.5466 GB, free: 12.69 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006445/0.173, allocations: 107.5 kB / 0.5467 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005495/0.1785, allocations: 3.642 MB / 0.5503 GB, free: 8.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005221/0.179, allocations: 0.8192 MB / 0.5511 GB, free: 7.883 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002182/0.1792, allocations: 63.36 kB / 0.5511 GB, free: 7.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002458/0.1795, allocations: 159.4 kB / 0.5513 GB, free: 7.664 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1795, allocations: 0 / 0.5513 GB, free: 7.664 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02831/0.2078, allocations: 7.475 MB / 0.5586 GB, free: 404 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.443/8.651, allocations: 8.062 kB / 0.5586 GB, free: 396 kB / 414.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.527670302952174] Failed to read output from testmodel.py, exit status != 0: 8.77961193001829 8.79551638 8.640654869 Calling exit ...