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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/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=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 102.2 kB / 16.27 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 193.3 kB / 17.2 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2588/0.2588, allocations: 31.17 MB / 322.2 MB, free: 220 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 62.66 kB / 389.6 MB, free: 38.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1048, allocations: 56.38 MB / 446 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.007182/0.1121, allocations: 5.376 MB / 451.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.1136, allocations: 0.6151 MB / 452 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004199/0.114, allocations: 11.94 kB / 452 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003233/0.1144, allocations: 87.2 kB / 452.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002732/0.1147, allocations: 71.36 kB / 452.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006529/0.1154, allocations: 183.5 kB / 452.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005546/0.1159, allocations: 459.2 kB / 452.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00036/0.1163, allocations: 218.4 kB / 453 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002638/0.1166, allocations: 187.3 kB / 453.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002691/0.1168, allocations: 195.1 kB / 453.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.195e-05/0.1169, allocations: 44 kB / 453.4 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.117, allocations: 56 kB / 453.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.1172, allocations: 107.7 kB / 453.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002086/0.1174, allocations: 210.9 kB / 453.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004882/0.1179, allocations: 446.8 kB / 454.2 MB, free: 10.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1179, allocations: 0 / 454.2 MB, free: 10.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1179, allocations: 0 / 454.2 MB, free: 10.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.237e-05/0.1179, allocations: 0 / 454.2 MB, free: 10.87 MB / 334.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.001288/0.1192, allocations: 0.6943 MB / 454.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.1193, allocations: 8.031 kB / 454.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003356/0.1196, allocations: 64.42 kB / 454.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004121/0.12, allocations: 319.2 kB / 455.3 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.764e-05/0.1201, allocations: 37.38 kB / 455.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.363e-05/0.1202, allocations: 55.92 kB / 455.4 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007085/0.1209, allocations: 419.3 kB / 455.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.1209, allocations: 3.938 kB / 455.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.656e-05/0.121, allocations: 16 kB / 455.8 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.121, allocations: 12 kB / 455.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005702/0.1215, allocations: 251.8 kB / 456 MB, free: 8.898 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002206/0.1238, allocations: 1.66 MB / 457.7 MB, free: 7.145 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006259/0.1244, allocations: 250.3 kB / 457.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002936/0.1247, allocations: 164 kB / 458.1 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.1248, allocations: 7.938 kB / 458.1 MB, free: 6.684 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.1248, allocations: 38.56 kB / 458.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.853e-06/0.1248, allocations: 0 / 458.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008851/0.1257, allocations: 347.1 kB / 458.5 MB, free: 6.293 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.602e-05/0.1258, allocations: 162.2 kB / 458.6 MB, free: 6.098 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002916/0.1261, allocations: 266.5 kB / 458.9 MB, free: 5.828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.544e-05/0.1261, allocations: 41.7 kB / 458.9 MB, free: 5.781 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.1263, allocations: 208.7 kB / 459.2 MB, free: 5.574 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.613e-05/0.1264, allocations: 94.73 kB / 459.2 MB, free: 5.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.1265, allocations: 98.23 kB / 459.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1267, allocations: 338.8 kB / 459.7 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003235/0.127, allocations: 141 kB / 459.8 MB, free: 4.902 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004076/0.1274, allocations: 249.9 kB / 460.1 MB, free: 4.613 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005972/0.128, allocations: 350.7 kB / 460.4 MB, free: 4.227 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1281, allocations: 0 / 460.4 MB, free: 4.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008609/0.1289, allocations: 449.5 kB / 460.8 MB, free: 3.781 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.1289, allocations: 4 kB / 460.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.129, allocations: 4 kB / 460.8 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.129, allocations: 11.98 kB / 460.9 MB, free: 3.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002517/0.1292, allocations: 59.84 kB / 460.9 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.558e-05/0.1293, allocations: 11.94 kB / 460.9 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002727/0.1295, allocations: 59.69 kB / 461 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.413e-05/0.1296, allocations: 24 kB / 461 MB, free: 3.609 MB / 334.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.0002108/0.1298, allocations: 192.3 kB / 461.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.1299, allocations: 31.62 kB / 461.2 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.902e-05/0.13, allocations: 30.17 kB / 461.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.13, allocations: 7.938 kB / 461.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.13, allocations: 0 / 461.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.13, allocations: 4 kB / 461.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.1317, allocations: 1.184 MB / 462.4 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.1317, allocations: 0 / 462.4 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002017/0.1319, allocations: 43.86 kB / 462.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.184e-06/0.1319, allocations: 4.406 kB / 462.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.1319, allocations: 15.98 kB / 462.5 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.253e-06/0.132, allocations: 15.88 kB / 462.5 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.132, allocations: 4 kB / 462.5 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008144/0.1328, allocations: 0.544 MB / 463.1 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001338/0.1329, allocations: 128.8 kB / 463.2 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.072e-05/0.133, allocations: 15.92 kB / 463.2 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.1332, allocations: 19.89 kB / 463.2 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.807e-05/0.1333, allocations: 31.91 kB / 463.3 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.1333, allocations: 16 kB / 463.3 MB, free: 1.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001832/0.1335, allocations: 181.9 kB / 463.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1335, allocations: 0 / 463.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004407/0.134, allocations: 95.69 kB / 463.6 MB, free: 0.8828 MB / 334.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.0001312/0.1341, allocations: 121.1 kB / 463.7 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007355/0.1348, allocations: 339.5 kB / 464 MB, free: 436 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.1349, allocations: 0 / 464 MB, free: 436 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002688/0.1351, allocations: 137.1 kB / 464.1 MB, free: 300 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005955/0.1357, allocations: 89.48 kB / 464.2 MB, free: 212 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.137, allocations: 0.7627 MB / 465 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.1374, allocations: 0.7961 MB / 465.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.1375, allocations: 35.42 kB / 465.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1376, allocations: 0 / 465.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of Templates: time 0.007234/0.1448, allocations: 4.283 MB / 470.1 MB, free: 10.25 MB / 350.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.makefile (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 & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)