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.001803/0.001803, allocations: 115.6 kB / 17.16 MB, free: 5.895 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.002328/0.002328, allocations: 215 kB / 20.13 MB, free: 2.949 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.567/1.567, 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 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.1798/0.1798, allocations: 31.55 MB / 341.1 MB, free: 10.04 MB / 270.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_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.002092/0.002092, allocations: 64.72 kB / 476.3 MB, free: 28.04 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1215, allocations: 60.69 MB / 0.5244 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.009144/0.1306, allocations: 6.883 MB / 0.5312 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002309/0.1329, allocations: 1.005 MB / 0.5321 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004372/0.1334, allocations: 27.75 kB / 0.5322 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003455/0.1337, allocations: 103 kB / 0.5323 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000253/0.134, allocations: 79.25 kB / 0.5323 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006629/0.1346, allocations: 227.5 kB / 0.5326 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006495/0.1353, allocations: 0.5698 MB / 0.5331 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003718/0.1356, allocations: 221.6 kB / 0.5333 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002672/0.1359, allocations: 231.1 kB / 0.5335 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003037/0.1362, allocations: 246.8 kB / 0.5338 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.763e-05/0.1363, allocations: 56 kB / 0.5338 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001489/0.1364, allocations: 64 kB / 0.5339 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.1366, allocations: 131.5 kB / 0.534 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002263/0.1368, allocations: 262.7 kB / 0.5343 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000724/0.1375, allocations: 0.5718 MB / 0.5348 GB, free: 9.484 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1375, allocations: 4 kB / 0.5348 GB, free: 9.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1375, allocations: 7.938 kB / 0.5348 GB, free: 9.473 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1375, allocations: 0 / 0.5348 GB, free: 9.473 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.001465/0.139, allocations: 0.7909 MB / 0.5356 GB, free: 8.633 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.1391, allocations: 12.03 kB / 0.5356 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.249e-05/0.1391, allocations: 21.19 kB / 0.5356 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.68e-05/0.1392, allocations: 86.7 kB / 0.5357 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003183/0.1395, allocations: 76.53 kB / 0.5358 GB, free: 8.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006131/0.1401, allocations: 412.3 kB / 0.5362 GB, free: 7.992 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.352e-05/0.1402, allocations: 48.94 kB / 0.5362 GB, free: 7.945 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.216e-05/0.1402, allocations: 52 kB / 0.5363 GB, free: 7.895 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008864/0.1411, allocations: 0.4953 MB / 0.5368 GB, free: 7.371 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.1412, allocations: 4 kB / 0.5368 GB, free: 7.367 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.438e-05/0.1412, allocations: 20 kB / 0.5368 GB, free: 7.348 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.1412, allocations: 12 kB / 0.5368 GB, free: 7.336 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006722/0.1419, allocations: 303.7 kB / 0.5371 GB, free: 7.039 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002426/0.1443, allocations: 1.872 MB / 0.5389 GB, free: 5.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000683/0.145, allocations: 291.2 kB / 0.5392 GB, free: 4.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003303/0.1453, allocations: 174.9 kB / 0.5394 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.1453, allocations: 8.172 kB / 0.5394 GB, free: 4.562 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.1454, allocations: 38.73 kB / 0.5394 GB, free: 4.516 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.703e-06/0.1454, allocations: 0 / 0.5394 GB, free: 4.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009328/0.1463, allocations: 387.7 kB / 0.5398 GB, free: 4.133 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.1464, allocations: 170.2 kB / 0.5399 GB, free: 3.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003597/0.1468, allocations: 316.4 kB / 0.5402 GB, free: 3.609 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.281e-05/0.1468, allocations: 45.7 kB / 0.5403 GB, free: 3.559 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001948/0.147, allocations: 253.1 kB / 0.5405 GB, free: 3.309 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.866e-05/0.1471, allocations: 99.2 kB / 0.5406 GB, free: 3.211 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000164/0.1473, allocations: 110.2 kB / 0.5407 GB, free: 3.094 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.1474, allocations: 346.8 kB / 0.5411 GB, free: 2.746 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003501/0.1478, allocations: 149 kB / 0.5412 GB, free: 2.602 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004461/0.1482, allocations: 258 kB / 0.5414 GB, free: 2.309 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006623/0.1489, allocations: 362.8 kB / 0.5418 GB, free: 1.914 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.1489, allocations: 7.938 kB / 0.5418 GB, free: 1.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009572/0.1499, allocations: 483.4 kB / 0.5423 GB, free: 1.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.1499, allocations: 4.406 kB / 0.5423 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.1499, allocations: 8 kB / 0.5423 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/0.1499, allocations: 11.98 kB / 0.5423 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002869/0.1502, allocations: 63.84 kB / 0.5423 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.637e-05/0.1502, allocations: 11.98 kB / 0.5424 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.1505, allocations: 59.55 kB / 0.5424 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.406e-05/0.1505, allocations: 23.98 kB / 0.5424 GB, free: 1.25 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.0002365/0.1508, allocations: 203.5 kB / 0.5426 GB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.1509, allocations: 39.7 kB / 0.5427 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.863e-05/0.151, allocations: 39.86 kB / 0.5427 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.151, allocations: 4 kB / 0.5427 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.151, allocations: 0 / 0.5427 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.151, allocations: 3.984 kB / 0.5427 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.1528, allocations: 1.224 MB / 0.5439 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.1528, allocations: 4 kB / 0.5439 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002324/0.153, allocations: 44.19 kB / 0.544 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.153, allocations: 8 kB / 0.544 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.112e-05/0.1531, allocations: 15.94 kB / 0.544 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.1531, allocations: 4 kB / 0.544 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.1531, allocations: 0 / 0.544 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009132/0.154, allocations: 0.5501 MB / 0.5445 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001489/0.1541, allocations: 144.8 kB / 0.5447 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.085e-05/0.1542, allocations: 19.88 kB / 0.5447 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.1544, allocations: 15.98 kB / 0.5447 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.292e-05/0.1545, allocations: 39.89 kB / 0.5447 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.1545, allocations: 12 kB / 0.5447 GB, free: 14.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002275/0.1547, allocations: 211.1 kB / 0.5449 GB, free: 14.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1547, allocations: 0 / 0.5449 GB, free: 14.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004406/0.1552, allocations: 115.7 kB / 0.5451 GB, free: 14.4 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.001328/0.1565, allocations: 1.112 MB / 0.5461 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007479/0.1573, allocations: 334.2 kB / 0.5465 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1573, allocations: 0 / 0.5465 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003085/0.1576, allocations: 144.9 kB / 0.5466 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006236/0.1582, allocations: 124.8 kB / 0.5467 GB, free: 12.65 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005211/0.1634, allocations: 3.637 MB / 0.5503 GB, free: 8.797 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004914/0.1639, allocations: 0.827 MB / 0.5511 GB, free: 7.941 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002344/0.1641, allocations: 63.34 kB / 0.5511 GB, free: 7.879 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002338/0.1644, allocations: 155.4 kB / 0.5513 GB, free: 7.727 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1644, allocations: 0 / 0.5513 GB, free: 7.727 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02848/0.1928, allocations: 7.461 MB / 0.5586 GB, free: 444 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.8/8.993, allocations: 8.047 kB / 0.5586 GB, free: 436 kB / 414.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.974580357025843] Failed to read output from testmodel.py, exit status != 0: 9.126899882976431 9.148029967 9.007390462 Calling exit ...