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.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.001616/0.001616, allocations: 111.3 kB / 17.08 MB, free: 6.012 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.001751/0.001752, allocations: 193.2 kB / 20.03 MB, free: 3.082 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.418/1.418, allocations: 222.9 MB / 245.7 MB, free: 4.23 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.2857/0.2857, allocations: 31.12 MB / 329 MB, free: 3.289 MB / 254.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: translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 66.17 kB / 456.1 MB, free: 30.82 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09748/0.09941, allocations: 56.36 MB / 0.5004 GB, free: 6.246 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.007486/0.1069, allocations: 5.389 MB / 0.5057 GB, free: 0.832 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.1085, allocations: 0.6034 MB / 0.5063 GB, free: 232 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002328/0.1087, allocations: 8 kB / 0.5063 GB, free: 224 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002483/0.109, allocations: 79.27 kB / 0.5063 GB, free: 144 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002008/0.1092, allocations: 75.36 kB / 0.5064 GB, free: 68 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005688/0.1098, allocations: 183.5 kB / 0.5066 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005519/0.1104, allocations: 463.3 kB / 0.507 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003582/0.1107, allocations: 234.1 kB / 0.5073 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002348/0.111, allocations: 187.3 kB / 0.5074 GB, free: 15.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002698/0.1112, allocations: 199.1 kB / 0.5076 GB, free: 14.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.057e-05/0.1113, allocations: 44 kB / 0.5077 GB, free: 14.78 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001071/0.1114, allocations: 55.98 kB / 0.5077 GB, free: 14.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.1116, allocations: 111.6 kB / 0.5078 GB, free: 14.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002013/0.1118, allocations: 203 kB / 0.508 GB, free: 14.42 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005916/0.1124, allocations: 462.1 kB / 0.5085 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1124, allocations: 0 / 0.5085 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.1124, allocations: 0 / 0.5085 GB, free: 13.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.1124, allocations: 3.938 kB / 0.5085 GB, free: 13.96 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001314/0.1137, allocations: 0.7094 MB / 0.5092 GB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.1138, allocations: 12.03 kB / 0.5092 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003271/0.1141, allocations: 72.61 kB / 0.5092 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004745/0.1146, allocations: 331.5 kB / 0.5096 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.795e-05/0.1147, allocations: 37.38 kB / 0.5096 GB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.457e-05/0.1147, allocations: 47.94 kB / 0.5096 GB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007721/0.1155, allocations: 419.3 kB / 0.51 GB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.1156, allocations: 0 / 0.51 GB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.135e-05/0.1156, allocations: 16 kB / 0.51 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.1156, allocations: 8 kB / 0.5101 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006339/0.1163, allocations: 251.7 kB / 0.5103 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/0.1188, allocations: 1.661 MB / 0.5119 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006155/0.1194, allocations: 246.3 kB / 0.5122 GB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000305/0.1197, allocations: 163.7 kB / 0.5123 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.1197, allocations: 7.938 kB / 0.5123 GB, free: 9.754 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.1198, allocations: 42.5 kB / 0.5124 GB, free: 9.703 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.784e-06/0.1198, allocations: 0 / 0.5124 GB, free: 9.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008475/0.1206, allocations: 349.1 kB / 0.5127 GB, free: 9.355 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.1208, allocations: 162.2 kB / 0.5128 GB, free: 9.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.1211, allocations: 266.6 kB / 0.5131 GB, free: 8.895 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.116e-05/0.1212, allocations: 45.7 kB / 0.5131 GB, free: 8.844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.1213, allocations: 209 kB / 0.5133 GB, free: 8.637 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.762e-05/0.1215, allocations: 99.25 kB / 0.5134 GB, free: 8.539 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.1216, allocations: 106.1 kB / 0.5135 GB, free: 8.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.1218, allocations: 338.8 kB / 0.5139 GB, free: 8.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003222/0.1221, allocations: 137 kB / 0.514 GB, free: 7.957 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004389/0.1226, allocations: 249.9 kB / 0.5142 GB, free: 7.668 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006199/0.1232, allocations: 346.7 kB / 0.5146 GB, free: 7.285 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1232, allocations: 0 / 0.5146 GB, free: 7.285 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008823/0.1241, allocations: 457.6 kB / 0.515 GB, free: 6.832 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.1241, allocations: 4 kB / 0.515 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1241, allocations: 4 kB / 0.515 GB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.428e-05/0.1242, allocations: 8 kB / 0.515 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.1244, allocations: 63.78 kB / 0.5151 GB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.876e-05/0.1245, allocations: 11.98 kB / 0.5151 GB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002549/0.1247, allocations: 59.78 kB / 0.5151 GB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.659e-05/0.1248, allocations: 20 kB / 0.5152 GB, free: 6.664 MB / 382.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.0002175/0.125, allocations: 183.5 kB / 0.5153 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.739e-05/0.1251, allocations: 27.81 kB / 0.5154 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.31e-05/0.1252, allocations: 38.17 kB / 0.5154 GB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.1252, allocations: 11.88 kB / 0.5154 GB, free: 6.395 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.1252, allocations: 0 / 0.5154 GB, free: 6.395 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.1252, allocations: 4 kB / 0.5154 GB, free: 6.391 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001694/0.1269, allocations: 1.185 MB / 0.5166 GB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.329e-06/0.1269, allocations: 4 kB / 0.5166 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002025/0.1271, allocations: 43.91 kB / 0.5166 GB, free: 5.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.852e-06/0.1272, allocations: 4 kB / 0.5166 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.908e-05/0.1272, allocations: 15.94 kB / 0.5166 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.1272, allocations: 4.406 kB / 0.5166 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.271e-06/0.1272, allocations: 11.94 kB / 0.5167 GB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008766/0.1281, allocations: 0.5278 MB / 0.5172 GB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/0.1282, allocations: 132.8 kB / 0.5173 GB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.1283, allocations: 15.98 kB / 0.5173 GB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/0.1285, allocations: 15.98 kB / 0.5173 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.1286, allocations: 39.84 kB / 0.5174 GB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.1286, allocations: 8 kB / 0.5174 GB, free: 4.203 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001973/0.1288, allocations: 189.9 kB / 0.5176 GB, free: 4.016 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1288, allocations: 0 / 0.5176 GB, free: 4.016 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004258/0.1293, allocations: 99.73 kB / 0.5176 GB, free: 3.918 MB / 382.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.0001413/0.1294, allocations: 119.5 kB / 0.5178 GB, free: 3.797 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007101/0.1301, allocations: 319.9 kB / 0.5181 GB, free: 3.484 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1302, allocations: 0 / 0.5181 GB, free: 3.484 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002765/0.1304, allocations: 141.3 kB / 0.5182 GB, free: 3.348 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005748/0.131, allocations: 101.4 kB / 0.5183 GB, free: 3.254 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.1323, allocations: 0.7629 MB / 0.519 GB, free: 2.418 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004756/0.1328, allocations: 0.7883 MB / 0.5198 GB, free: 1.605 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.1329, allocations: 39.42 kB / 0.5198 GB, free: 1.566 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1329, allocations: 0 / 0.5198 GB, free: 1.566 MB / 382.1 MB Notification: Performance of Templates: time 0.007544/0.1405, allocations: 4.323 MB / 0.5241 GB, free: 13.26 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.makefile [Timeout 660] (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 & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.346370795974508] Failed to read output from testmodel.py, exit status != 0: 0.14714516699314117 0.161155974 0.0461164 Calling exit ...