Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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.001351/0.001351, allocations: 118.8 kB / 17.16 MB, free: 5.914 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.001411/0.001411, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.477/1.477, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.2776/0.2776, 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.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",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.002174/0.002174, allocations: 65.08 kB / 476.3 MB, free: 28.03 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1365, allocations: 60.68 MB / 0.5244 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.008255/0.1447, allocations: 5.469 MB / 0.5298 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.1465, allocations: 0.619 MB / 0.5304 GB, free: 14.01 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004871/0.147, allocations: 15.88 kB / 0.5304 GB, free: 14 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003815/0.1474, allocations: 79.33 kB / 0.5305 GB, free: 13.92 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003323/0.1477, allocations: 71.3 kB / 0.5305 GB, free: 13.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007533/0.1484, allocations: 187.6 kB / 0.5307 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007086/0.1491, allocations: 463.3 kB / 0.5311 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003449/0.1495, allocations: 154.6 kB / 0.5313 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003279/0.1498, allocations: 199.3 kB / 0.5315 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003692/0.1502, allocations: 195.1 kB / 0.5317 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.496e-05/0.1503, allocations: 48 kB / 0.5317 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001409/0.1504, allocations: 55.98 kB / 0.5318 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.1506, allocations: 103.7 kB / 0.5319 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002583/0.1508, allocations: 210.9 kB / 0.5321 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006897/0.1515, allocations: 458.1 kB / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.1515, allocations: 4 kB / 0.5325 GB, free: 11.8 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.1515, allocations: 3.984 kB / 0.5325 GB, free: 11.8 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.639e-05/0.1515, allocations: 0 / 0.5325 GB, free: 11.8 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001487/0.153, allocations: 0.6969 MB / 0.5332 GB, free: 11.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.1531, allocations: 16.03 kB / 0.5332 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.337e-05/0.1531, allocations: 9.188 kB / 0.5332 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/0.1532, allocations: 82.7 kB / 0.5333 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003512/0.1536, allocations: 64.62 kB / 0.5334 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005592/0.1541, allocations: 327.5 kB / 0.5337 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.293e-05/0.1542, allocations: 48.88 kB / 0.5337 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.096e-05/0.1543, allocations: 44 kB / 0.5338 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008121/0.1551, allocations: 415.3 kB / 0.5342 GB, free: 9.996 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.1551, allocations: 7.938 kB / 0.5342 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.778e-05/0.1551, allocations: 16 kB / 0.5342 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.1551, allocations: 12 kB / 0.5342 GB, free: 9.961 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005991/0.1557, allocations: 243.8 kB / 0.5344 GB, free: 9.723 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002436/0.1582, allocations: 1.669 MB / 0.5361 GB, free: 7.965 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000644/0.1588, allocations: 246.3 kB / 0.5363 GB, free: 7.688 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000298/0.1591, allocations: 153.4 kB / 0.5364 GB, free: 7.527 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.1591, allocations: 8 kB / 0.5364 GB, free: 7.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.475e-05/0.1592, allocations: 38.56 kB / 0.5365 GB, free: 7.473 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 2.435e-06/0.1592, allocations: 0 / 0.5365 GB, free: 7.473 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008958/0.1601, allocations: 358.1 kB / 0.5368 GB, free: 7.117 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.1602, allocations: 158.2 kB / 0.537 GB, free: 6.926 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003353/0.1605, allocations: 263 kB / 0.5372 GB, free: 6.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.49e-05/0.1606, allocations: 49.69 kB / 0.5373 GB, free: 6.605 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.1608, allocations: 216.6 kB / 0.5375 GB, free: 6.391 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.948e-05/0.1609, allocations: 91.25 kB / 0.5376 GB, free: 6.301 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/0.161, allocations: 98.2 kB / 0.5377 GB, free: 6.199 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.1612, allocations: 342.8 kB / 0.538 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003699/0.1616, allocations: 141 kB / 0.5381 GB, free: 5.719 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004411/0.162, allocations: 245.9 kB / 0.5383 GB, free: 5.434 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006596/0.1627, allocations: 346.7 kB / 0.5387 GB, free: 5.051 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1627, allocations: 0 / 0.5387 GB, free: 5.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009349/0.1636, allocations: 453.4 kB / 0.5391 GB, free: 4.602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.1637, allocations: 4 kB / 0.5391 GB, free: 4.598 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.1637, allocations: 4 kB / 0.5391 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.517e-05/0.1637, allocations: 11.94 kB / 0.5391 GB, free: 4.582 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002675/0.164, allocations: 64.23 kB / 0.5392 GB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.203e-05/0.164, allocations: 12 kB / 0.5392 GB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002822/0.1643, allocations: 55.64 kB / 0.5393 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.85e-05/0.1643, allocations: 20 kB / 0.5393 GB, free: 4.434 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 (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.00024/0.1645, allocations: 183.5 kB / 0.5395 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.1647, allocations: 31.81 kB / 0.5395 GB, free: 4.215 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.403e-05/0.1647, allocations: 34.11 kB / 0.5395 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.1648, allocations: 4 kB / 0.5395 GB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1648, allocations: 4 kB / 0.5395 GB, free: 4.168 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.1648, allocations: 7.984 kB / 0.5395 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001847/0.1666, allocations: 1.189 MB / 0.5407 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.1666, allocations: 4 kB / 0.5407 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002149/0.1668, allocations: 44.31 kB / 0.5407 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.12e-05/0.1669, allocations: 11.94 kB / 0.5407 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.017e-05/0.1669, allocations: 15.94 kB / 0.5408 GB, free: 2.789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.055e-06/0.1669, allocations: 7.984 kB / 0.5408 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.1669, allocations: 4 kB / 0.5408 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.1679, allocations: 0.5361 MB / 0.5413 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.1681, allocations: 128.9 kB / 0.5414 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.574e-05/0.1681, allocations: 12 kB / 0.5414 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.1684, allocations: 19.98 kB / 0.5415 GB, free: 2.012 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.852e-05/0.1685, allocations: 39.83 kB / 0.5415 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.129e-05/0.1685, allocations: 12 kB / 0.5415 GB, free: 1.961 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002002/0.1687, allocations: 178 kB / 0.5417 GB, free: 1.789 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1687, allocations: 0 / 0.5417 GB, free: 1.789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004595/0.1691, allocations: 91.78 kB / 0.5418 GB, free: 1.699 MB / 398.1 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.001277/0.1704, allocations: 1.098 MB / 0.5428 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000751/0.1712, allocations: 319.5 kB / 0.5431 GB, free: 232 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.1712, allocations: 4 kB / 0.5431 GB, free: 228 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003287/0.1715, allocations: 137.4 kB / 0.5433 GB, free: 92 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005948/0.1721, allocations: 81.64 kB / 0.5433 GB, free: 16 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005206/0.1773, allocations: 3.362 MB / 0.5466 GB, free: 12.42 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005404/0.1779, allocations: 0.7922 MB / 0.5474 GB, free: 11.6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002055/0.1781, allocations: 59.22 kB / 0.5475 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000206/0.1783, allocations: 127.3 kB / 0.5476 GB, free: 11.41 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1783, allocations: 0 / 0.5476 GB, free: 11.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02887/0.2071, allocations: 6.466 MB / 0.5539 GB, free: 5.109 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.363/8.57, allocations: 6.812 kB / 0.5539 GB, free: 5.105 MB / 414.1 MB " [Timeout remaining time 651] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.626127882977016] Failed to read output from testmodel.py, exit status != 0: 8.700348308018874 8.726849678 8.570697146 Calling exit ...