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.001756/0.001756, allocations: 115.1 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.001978/0.001978, 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.498/1.498, 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.3148/0.3148, allocations: 31.56 MB / 341.1 MB, free: 10.02 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.SimpleProductionChain,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_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.002288/0.002288, allocations: 67.19 kB / 476.3 MB, free: 28.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1135, allocations: 60.68 MB / 0.5244 GB, free: 4.273 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.007551/0.121, allocations: 5.476 MB / 0.5298 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001627/0.1226, allocations: 0.619 MB / 0.5304 GB, free: 14.15 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003044/0.1229, allocations: 11.94 kB / 0.5304 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002803/0.1232, allocations: 83.25 kB / 0.5305 GB, free: 14.06 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002019/0.1234, allocations: 67.38 kB / 0.5305 GB, free: 13.99 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005941/0.124, allocations: 195.5 kB / 0.5307 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005112/0.1245, allocations: 455.3 kB / 0.5312 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002944/0.1248, allocations: 162.6 kB / 0.5313 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002341/0.125, allocations: 203.3 kB / 0.5315 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002614/0.1253, allocations: 187.2 kB / 0.5317 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.896e-05/0.1254, allocations: 48 kB / 0.5317 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.1255, allocations: 48 kB / 0.5318 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000122/0.1256, allocations: 115.6 kB / 0.5319 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002065/0.1258, allocations: 214.9 kB / 0.5321 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005942/0.1264, allocations: 458.1 kB / 0.5325 GB, free: 11.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1264, allocations: 4 kB / 0.5325 GB, free: 11.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1264, allocations: 0 / 0.5325 GB, free: 11.94 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.956e-06/0.1264, allocations: 0 / 0.5325 GB, free: 11.94 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.001323/0.1277, allocations: 0.6939 MB / 0.5332 GB, free: 11.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.1278, allocations: 12.03 kB / 0.5332 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.489e-05/0.1278, allocations: 13.19 kB / 0.5332 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.977e-05/0.1279, allocations: 78.7 kB / 0.5333 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003245/0.1282, allocations: 64.62 kB / 0.5334 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004842/0.1287, allocations: 335.4 kB / 0.5337 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.946e-05/0.1288, allocations: 40.94 kB / 0.5337 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.605e-05/0.1288, allocations: 48 kB / 0.5338 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007452/0.1296, allocations: 415.3 kB / 0.5342 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.1296, allocations: 0 / 0.5342 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.068e-05/0.1296, allocations: 23.94 kB / 0.5342 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.1297, allocations: 12 kB / 0.5342 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005557/0.1302, allocations: 239.8 kB / 0.5344 GB, free: 9.863 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/0.1324, allocations: 1.665 MB / 0.5361 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006114/0.133, allocations: 246.3 kB / 0.5363 GB, free: 7.832 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002876/0.1333, allocations: 151.4 kB / 0.5364 GB, free: 7.672 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.1333, allocations: 7.938 kB / 0.5364 GB, free: 7.664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.549e-05/0.1333, allocations: 38.56 kB / 0.5365 GB, free: 7.617 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.673e-06/0.1333, allocations: 4 kB / 0.5365 GB, free: 7.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008669/0.1342, allocations: 350.2 kB / 0.5368 GB, free: 7.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.1343, allocations: 158.2 kB / 0.537 GB, free: 7.074 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003039/0.1346, allocations: 266.6 kB / 0.5372 GB, free: 6.805 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.768e-05/0.1347, allocations: 46.08 kB / 0.5373 GB, free: 6.754 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.1348, allocations: 220.6 kB / 0.5375 GB, free: 6.535 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.902e-05/0.1349, allocations: 87.27 kB / 0.5376 GB, free: 6.449 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.1351, allocations: 106.2 kB / 0.5377 GB, free: 6.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.1353, allocations: 342.8 kB / 0.538 GB, free: 5.996 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003242/0.1356, allocations: 133 kB / 0.5381 GB, free: 5.867 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004218/0.136, allocations: 253.9 kB / 0.5384 GB, free: 5.574 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005922/0.1366, allocations: 346.7 kB / 0.5387 GB, free: 5.191 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.1366, allocations: 0 / 0.5387 GB, free: 5.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008456/0.1375, allocations: 453.5 kB / 0.5391 GB, free: 4.742 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.1375, allocations: 8 kB / 0.5391 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1375, allocations: 3.938 kB / 0.5391 GB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/0.1375, allocations: 11.94 kB / 0.5391 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000255/0.1378, allocations: 55.91 kB / 0.5392 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.778e-05/0.1378, allocations: 16.33 kB / 0.5392 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002573/0.138, allocations: 55.66 kB / 0.5393 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.746e-05/0.1381, allocations: 23.98 kB / 0.5393 GB, free: 4.57 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.0002133/0.1383, allocations: 183.5 kB / 0.5395 GB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.1384, allocations: 31.81 kB / 0.5395 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.286e-05/0.1385, allocations: 38.11 kB / 0.5395 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.1385, allocations: 4 kB / 0.5395 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1385, allocations: 0 / 0.5395 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1385, allocations: 11.94 kB / 0.5395 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001701/0.1402, allocations: 1.182 MB / 0.5407 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1402, allocations: 4 kB / 0.5407 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000203/0.1404, allocations: 39.91 kB / 0.5407 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.904e-06/0.1404, allocations: 8.344 kB / 0.5407 GB, free: 2.953 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.97e-05/0.1404, allocations: 16 kB / 0.5408 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.1404, allocations: 7.938 kB / 0.5408 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.1404, allocations: 4 kB / 0.5408 GB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000856/0.1413, allocations: 0.5438 MB / 0.5413 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.1414, allocations: 132.9 kB / 0.5414 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.126e-05/0.1415, allocations: 8 kB / 0.5414 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.1417, allocations: 19.98 kB / 0.5415 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.14e-05/0.1418, allocations: 39.84 kB / 0.5415 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.1418, allocations: 8 kB / 0.5415 GB, free: 2.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001878/0.142, allocations: 182 kB / 0.5417 GB, free: 1.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.142, allocations: 0 / 0.5417 GB, free: 1.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004307/0.1424, allocations: 95.78 kB / 0.5418 GB, free: 1.836 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.00134/0.1437, allocations: 1.09 MB / 0.5428 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008198/0.1446, allocations: 315.5 kB / 0.5431 GB, free: 384 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.1446, allocations: 4 kB / 0.5431 GB, free: 380 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003065/0.1449, allocations: 141 kB / 0.5433 GB, free: 240 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006703/0.1455, allocations: 90.56 kB / 0.5434 GB, free: 152 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005831/0.1514, allocations: 3.357 MB / 0.5466 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005236/0.1519, allocations: 0.7922 MB / 0.5474 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002582/0.1522, allocations: 59.23 kB / 0.5475 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002293/0.1524, allocations: 115.3 kB / 0.5476 GB, free: 11.56 MB / 414.1 MB Notification: Performance of SimCode: time 1.333e-06/0.1524, allocations: 4 kB / 0.5476 GB, free: 11.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02599/0.1784, allocations: 6.47 MB / 0.5539 GB, free: 5.238 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.798/8.976, allocations: 4.062 kB / 0.5539 GB, free: 5.234 MB / 414.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.069598052010406] Failed to read output from testmodel.py, exit status != 0: 9.104048061999492 9.117502096 8.9881043 Calling exit ...