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) 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/package.mo", uses=false) 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.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 106 kB / 16.27 MB, free: 6.41 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.001148/0.001148, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.39/1.39, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1722/0.1722, allocations: 31.13 MB / 322.2 MB, free: 144 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001373, allocations: 67.39 kB / 389.5 MB, free: 38.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08471/0.0861, allocations: 56.38 MB / 445.9 MB, free: 3 MB / 318.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008899/0.09505, allocations: 6.767 MB / 452.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.09734, allocations: 1.024 MB / 453.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000584/0.09794, allocations: 19.88 kB / 453.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003715/0.09838, allocations: 103 kB / 453.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003091/0.0987, allocations: 75.3 kB / 453.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000698/0.09941, allocations: 227.5 kB / 454.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006194/0.1, allocations: 0.5619 MB / 454.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004874/0.1005, allocations: 309.4 kB / 455 MB, free: 9.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002927/0.1008, allocations: 227.1 kB / 455.2 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003014/0.1012, allocations: 242.8 kB / 455.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.53e-05/0.1013, allocations: 56 kB / 455.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.1014, allocations: 64 kB / 455.6 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001365/0.1015, allocations: 135.6 kB / 455.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002325/0.1018, allocations: 250.7 kB / 456 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005758/0.1024, allocations: 0.5609 MB / 456.5 MB, free: 8.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1024, allocations: 0 / 456.5 MB, free: 8.371 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1024, allocations: 0 / 456.5 MB, free: 8.371 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.026e-05/0.1024, allocations: 0 / 456.5 MB, free: 8.371 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001363/0.1038, allocations: 0.7812 MB / 457.3 MB, free: 7.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.1038, allocations: 12.03 kB / 457.3 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003407/0.1042, allocations: 80.14 kB / 457.4 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005479/0.1047, allocations: 388.1 kB / 457.8 MB, free: 7.035 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.971e-05/0.1048, allocations: 41.38 kB / 457.8 MB, free: 6.996 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.671e-05/0.1049, allocations: 63.94 kB / 457.9 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008461/0.1057, allocations: 0.4914 MB / 458.4 MB, free: 6.414 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.1058, allocations: 3.938 kB / 458.4 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.067e-05/0.1058, allocations: 24 kB / 458.4 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.1058, allocations: 12 kB / 458.4 MB, free: 6.375 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006898/0.1065, allocations: 311.8 kB / 458.7 MB, free: 6.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002403/0.1089, allocations: 1.871 MB / 460.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006568/0.1096, allocations: 313.8 kB / 460.9 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003205/0.1099, allocations: 171.8 kB / 461 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.11, allocations: 8.234 kB / 461.1 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/0.11, allocations: 50.66 kB / 461.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 3.306e-06/0.11, allocations: 0 / 461.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008979/0.1109, allocations: 379.5 kB / 461.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.802e-05/0.111, allocations: 166.1 kB / 461.6 MB, free: 2.941 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003478/0.1114, allocations: 324.3 kB / 462 MB, free: 2.617 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.403e-05/0.1115, allocations: 37.7 kB / 462 MB, free: 2.574 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001796/0.1116, allocations: 256.6 kB / 462.2 MB, free: 2.316 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.157e-05/0.1117, allocations: 98.64 kB / 462.3 MB, free: 2.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.1119, allocations: 106.2 kB / 462.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.112, allocations: 350.8 kB / 462.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003855/0.1124, allocations: 149 kB / 462.9 MB, free: 1.613 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004232/0.1129, allocations: 254 kB / 463.2 MB, free: 1.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000632/0.1135, allocations: 366.8 kB / 463.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.1135, allocations: 3.938 kB / 463.5 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000906/0.1144, allocations: 475.7 kB / 464 MB, free: 452 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.1145, allocations: 7.938 kB / 464 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.1145, allocations: 8 kB / 464 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.1145, allocations: 4 kB / 464 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000282/0.1148, allocations: 71.83 kB / 464.1 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.1148, allocations: 4 kB / 464.1 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002883/0.1151, allocations: 71.28 kB / 464.2 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.421e-05/0.1151, allocations: 20 kB / 464.2 MB, free: 264 kB / 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 (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.0002189/0.1154, allocations: 195.5 kB / 464.4 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.1155, allocations: 39.56 kB / 464.4 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.1156, allocations: 39.94 kB / 464.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.1156, allocations: 4 kB / 464.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.1156, allocations: 4 kB / 464.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1156, allocations: 3.938 kB / 464.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001662/0.1173, allocations: 1.218 MB / 465.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.1173, allocations: 8.062 kB / 465.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002247/0.1175, allocations: 39.91 kB / 465.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.1176, allocations: 4 kB / 465.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.011e-05/0.1176, allocations: 23.92 kB / 465.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.1176, allocations: 0 / 465.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.1176, allocations: 4 kB / 465.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000863/0.1185, allocations: 0.5533 MB / 466.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.1186, allocations: 140.6 kB / 466.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.088e-05/0.1187, allocations: 15.92 kB / 466.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.1189, allocations: 15.98 kB / 466.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.695e-05/0.119, allocations: 35.91 kB / 466.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.74e-05/0.119, allocations: 8 kB / 466.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002135/0.1192, allocations: 215.1 kB / 466.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1192, allocations: 0 / 466.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000431/0.1197, allocations: 115.5 kB / 466.9 MB, free: 13.43 MB / 350.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.0001119/0.1198, allocations: 120.9 kB / 467 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000796/0.1206, allocations: 364.8 kB / 467.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1206, allocations: 3.938 kB / 467.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002947/0.1209, allocations: 147.8 kB / 467.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000618/0.1215, allocations: 105.4 kB / 467.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.1229, allocations: 0.8549 MB / 468.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/0.1233, allocations: 0.827 MB / 469.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.1234, allocations: 39.44 kB / 469.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1234, allocations: 0 / 469.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of Templates: time 0.007793/0.1312, allocations: 5.205 MB / 474.5 MB, free: 5.73 MB / 350.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.makefile (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 & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)