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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 105.8 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002043/0.002043, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 225.6 MB / 247.8 MB, free: 3.727 MB / 190.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.1734/0.1734, allocations: 31.56 MB / 334.2 MB, free: 15.27 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 60.78 kB / 467.1 MB, free: 37.09 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1077, allocations: 59.49 MB / 0.5143 GB, free: 13.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.009665/0.1174, allocations: 6.835 MB / 0.521 GB, free: 6.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002818/0.1202, allocations: 1.001 MB / 0.5219 GB, free: 5.973 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006942/0.1209, allocations: 19.88 kB / 0.522 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004772/0.1214, allocations: 111 kB / 0.5221 GB, free: 5.844 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002881/0.1217, allocations: 83.23 kB / 0.5221 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007454/0.1224, allocations: 227.5 kB / 0.5224 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006829/0.1231, allocations: 0.562 MB / 0.5229 GB, free: 4.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004856/0.1236, allocations: 225.6 kB / 0.5231 GB, free: 4.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002983/0.1239, allocations: 227.1 kB / 0.5233 GB, free: 4.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003067/0.1242, allocations: 238.9 kB / 0.5236 GB, free: 4.285 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.226e-05/0.1243, allocations: 60 kB / 0.5236 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00013/0.1244, allocations: 64 kB / 0.5237 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.1246, allocations: 135.6 kB / 0.5238 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002483/0.1248, allocations: 262.5 kB / 0.5241 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007038/0.1255, allocations: 0.564 MB / 0.5246 GB, free: 3.207 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.1255, allocations: 4 kB / 0.5246 GB, free: 3.203 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1255, allocations: 0 / 0.5246 GB, free: 3.203 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1255, allocations: 4 kB / 0.5246 GB, free: 3.199 MB / 382.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.001444/0.127, allocations: 0.7948 MB / 0.5254 GB, free: 2.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.127, allocations: 12.03 kB / 0.5254 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001104/0.1271, allocations: 94.64 kB / 0.5255 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003278/0.1275, allocations: 80.52 kB / 0.5256 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006624/0.1281, allocations: 416.2 kB / 0.526 GB, free: 1.715 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.812e-05/0.1282, allocations: 49.12 kB / 0.526 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.1283, allocations: 56 kB / 0.5261 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008975/0.1292, allocations: 0.4914 MB / 0.5266 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.1292, allocations: 4 kB / 0.5266 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.133e-05/0.1292, allocations: 20 kB / 0.5266 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.1293, allocations: 12 kB / 0.5266 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006903/0.1299, allocations: 311.7 kB / 0.5269 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0026/0.1325, allocations: 1.856 MB / 0.5287 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000686/0.1332, allocations: 287.2 kB / 0.529 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003132/0.1335, allocations: 177.3 kB / 0.5291 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.1336, allocations: 8.172 kB / 0.5291 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.301e-05/0.1336, allocations: 42.73 kB / 0.5292 GB, free: 14.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.994e-06/0.1336, allocations: 0 / 0.5292 GB, free: 14.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009268/0.1345, allocations: 388.5 kB / 0.5296 GB, free: 13.86 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.1347, allocations: 158.2 kB / 0.5297 GB, free: 13.67 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003908/0.1351, allocations: 324.4 kB / 0.53 GB, free: 13.35 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.858e-05/0.1351, allocations: 37.7 kB / 0.5301 GB, free: 13.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.1353, allocations: 257.5 kB / 0.5303 GB, free: 13.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.548e-05/0.1354, allocations: 111.2 kB / 0.5304 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.1356, allocations: 106.2 kB / 0.5305 GB, free: 12.83 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.1358, allocations: 346.8 kB / 0.5308 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003582/0.1361, allocations: 145 kB / 0.531 GB, free: 12.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004267/0.1365, allocations: 265.9 kB / 0.5312 GB, free: 12.04 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006341/0.1372, allocations: 370.8 kB / 0.5316 GB, free: 11.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1372, allocations: 0 / 0.5316 GB, free: 11.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009042/0.1381, allocations: 479.7 kB / 0.532 GB, free: 11.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.1381, allocations: 7.938 kB / 0.532 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.1381, allocations: 4 kB / 0.5321 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.1381, allocations: 8 kB / 0.5321 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002781/0.1384, allocations: 63.89 kB / 0.5321 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/0.1384, allocations: 11.94 kB / 0.5321 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.1387, allocations: 71.69 kB / 0.5322 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.589e-05/0.1387, allocations: 20 kB / 0.5322 GB, free: 10.98 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.0002277/0.139, allocations: 187.5 kB / 0.5324 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.1391, allocations: 43.7 kB / 0.5324 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.695e-05/0.1392, allocations: 47.84 kB / 0.5325 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.1392, allocations: 4 kB / 0.5325 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1392, allocations: 0 / 0.5325 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.1392, allocations: 0 / 0.5325 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00179/0.141, allocations: 1.229 MB / 0.5337 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.141, allocations: 4 kB / 0.5337 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002367/0.1412, allocations: 39.91 kB / 0.5337 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.1412, allocations: 4 kB / 0.5337 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/0.1413, allocations: 12 kB / 0.5337 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.762e-06/0.1413, allocations: 3.938 kB / 0.5338 GB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/0.1413, allocations: 11.92 kB / 0.5338 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000913/0.1422, allocations: 0.5608 MB / 0.5343 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.1423, allocations: 136.8 kB / 0.5344 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.815e-05/0.1424, allocations: 15.94 kB / 0.5345 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.1426, allocations: 15.98 kB / 0.5345 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.728e-05/0.1427, allocations: 39.89 kB / 0.5345 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.1427, allocations: 15.94 kB / 0.5345 GB, free: 8.441 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002438/0.1429, allocations: 211.1 kB / 0.5347 GB, free: 8.238 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1429, allocations: 0 / 0.5347 GB, free: 8.238 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004387/0.1434, allocations: 111.7 kB / 0.5348 GB, free: 8.129 MB / 398.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.001239/0.1446, allocations: 1.112 MB / 0.5359 GB, free: 6.961 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007201/0.1453, allocations: 326.3 kB / 0.5362 GB, free: 6.645 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1453, allocations: 4.75 kB / 0.5362 GB, free: 6.641 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003256/0.1457, allocations: 155.7 kB / 0.5364 GB, free: 6.488 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005987/0.1463, allocations: 104.2 kB / 0.5365 GB, free: 6.391 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005057/0.1513, allocations: 3.635 MB / 0.54 GB, free: 2.543 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000478/0.1518, allocations: 0.823 MB / 0.5408 GB, free: 1.695 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002255/0.152, allocations: 67.36 kB / 0.5409 GB, free: 1.629 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002283/0.1523, allocations: 159.3 kB / 0.5411 GB, free: 1.473 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1523, allocations: 0 / 0.5411 GB, free: 1.473 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03408/0.1863, allocations: 7.428 MB / 0.5483 GB, free: 10.24 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.282/8.468, allocations: 0.625 kB / 0.5483 GB, free: 10.24 MB / 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.283457114826888] Failed to read output from testmodel.py, exit status != 0: 8.541352417785674 8.557052482 8.428467951 Calling exit ...