Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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-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.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00567/0.00567, allocations: 98.97 kB / 15.73 MB, free: 6.004 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.001209/0.001209, allocations: 192.9 kB / 16.67 MB, free: 5.93 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1638/0.1638, allocations: 31.18 MB / 321.7 MB, free: 168 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 71.88 kB / 446.7 MB, free: 1.773 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1484, allocations: 56.35 MB / 0.4913 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.01074/0.1593, allocations: 6.796 MB / 0.4979 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003002/0.1623, allocations: 1.005 MB / 0.4989 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001227/0.1636, allocations: 23.88 kB / 0.4989 GB, free: 1.535 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007052/0.1643, allocations: 107 kB / 0.499 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007581/0.1651, allocations: 71.25 kB / 0.4991 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001488/0.1666, allocations: 231.5 kB / 0.4993 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.1679, allocations: 0.5697 MB / 0.4999 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006775/0.1686, allocations: 305.4 kB / 0.5002 GB, free: 260 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004759/0.1691, allocations: 227.1 kB / 0.5004 GB, free: 32 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3433/0.5124, allocations: 234.6 kB / 0.5006 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003248/0.5128, allocations: 56.53 kB / 0.5006 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002441/0.513, allocations: 66.41 kB / 0.5007 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000214/0.5133, allocations: 130.7 kB / 0.5008 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004422/0.5137, allocations: 266.7 kB / 0.5011 GB, free: 6.637 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001113/0.5148, allocations: 0.5693 MB / 0.5016 GB, free: 6.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.668e-06/0.5148, allocations: 1.344 kB / 0.5016 GB, free: 6.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.5149, allocations: 0 / 0.5016 GB, free: 6.543 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.5149, allocations: 0 / 0.5016 GB, free: 6.543 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.001593/0.5165, allocations: 0.7992 MB / 0.5024 GB, free: 6.023 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.091e-05/0.5165, allocations: 9.562 kB / 0.5024 GB, free: 6.023 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004046/0.517, allocations: 81.34 kB / 0.5025 GB, free: 5.996 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006002/0.5176, allocations: 411.8 kB / 0.5029 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.763e-05/0.5176, allocations: 44 kB / 0.5029 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.803e-05/0.5177, allocations: 59.83 kB / 0.503 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009269/0.5187, allocations: 0.4953 MB / 0.5035 GB, free: 5.641 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.5187, allocations: 4.688 kB / 0.5035 GB, free: 5.641 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.211e-05/0.5188, allocations: 20.47 kB / 0.5035 GB, free: 5.641 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.432e-05/0.5188, allocations: 15.48 kB / 0.5035 GB, free: 5.641 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007035/0.5195, allocations: 310.3 kB / 0.5038 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002915/0.5224, allocations: 1.862 MB / 0.5056 GB, free: 4.629 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008002/0.5232, allocations: 306.3 kB / 0.5059 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003763/0.5236, allocations: 181.5 kB / 0.5061 GB, free: 4.504 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.5237, allocations: 4.016 kB / 0.5061 GB, free: 4.504 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.508e-05/0.5237, allocations: 44.5 kB / 0.5062 GB, free: 4.465 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.655e-06/0.5237, allocations: 0 / 0.5062 GB, free: 4.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.001054/0.5248, allocations: 385.8 kB / 0.5065 GB, free: 4.406 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.5249, allocations: 159.9 kB / 0.5067 GB, free: 4.219 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004868/0.5254, allocations: 326 kB / 0.507 GB, free: 4.094 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.291e-05/0.5254, allocations: 40.06 kB / 0.507 GB, free: 4.062 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002066/0.5256, allocations: 260.9 kB / 0.5073 GB, free: 3.902 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.976e-05/0.5257, allocations: 106.2 kB / 0.5074 GB, free: 3.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/0.5259, allocations: 105.4 kB / 0.5075 GB, free: 3.816 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.5261, allocations: 347.2 kB / 0.5078 GB, free: 3.504 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003551/0.5264, allocations: 143.4 kB / 0.5079 GB, free: 3.504 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004512/0.5269, allocations: 262.2 kB / 0.5082 GB, free: 3.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006563/0.5275, allocations: 364.1 kB / 0.5085 GB, free: 3.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.5276, allocations: 1 kB / 0.5085 GB, free: 3.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009975/0.5286, allocations: 478.6 kB / 0.509 GB, free: 3.195 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.5286, allocations: 12.25 kB / 0.509 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.5286, allocations: 10.78 kB / 0.509 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.595e-05/0.5286, allocations: 5.5 kB / 0.509 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002951/0.5289, allocations: 74.59 kB / 0.5091 GB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.661e-05/0.529, allocations: 6.906 kB / 0.5091 GB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002898/0.5293, allocations: 60.62 kB / 0.5092 GB, free: 3.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.296e-05/0.5293, allocations: 19.45 kB / 0.5092 GB, free: 3.156 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 (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.0002319/0.5296, allocations: 196.2 kB / 0.5094 GB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.5297, allocations: 37.58 kB / 0.5094 GB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.649e-05/0.5298, allocations: 44.8 kB / 0.5094 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.5298, allocations: 11.06 kB / 0.5095 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.5298, allocations: 1.344 kB / 0.5095 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.5298, allocations: 3.281 kB / 0.5095 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001713/0.5315, allocations: 1.22 MB / 0.5107 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.5316, allocations: 5.25 kB / 0.5107 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002272/0.5318, allocations: 44.69 kB / 0.5107 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.555e-06/0.5318, allocations: 4.562 kB / 0.5107 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.146e-05/0.5318, allocations: 10 kB / 0.5107 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.5319, allocations: 4.938 kB / 0.5107 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-06/0.5319, allocations: 12.84 kB / 0.5107 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009174/0.5328, allocations: 0.5566 MB / 0.5113 GB, free: 2.098 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.5329, allocations: 132.4 kB / 0.5114 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.065e-05/0.533, allocations: 13.48 kB / 0.5114 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.5332, allocations: 24.73 kB / 0.5114 GB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.5333, allocations: 38.44 kB / 0.5115 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.099e-05/0.5333, allocations: 9.625 kB / 0.5115 GB, free: 1.973 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002636/0.5336, allocations: 212.7 kB / 0.5117 GB, free: 1.895 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5336, allocations: 0 / 0.5117 GB, free: 1.895 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004958/0.5341, allocations: 112.9 kB / 0.5118 GB, free: 1.871 MB / 382.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.0001426/0.5343, allocations: 117.5 kB / 0.5119 GB, free: 1.781 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008575/0.5351, allocations: 351.9 kB / 0.5122 GB, free: 1.777 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.5351, allocations: 1.281 kB / 0.5122 GB, free: 1.777 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003813/0.5355, allocations: 161.8 kB / 0.5124 GB, free: 1.773 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000678/0.5362, allocations: 100.3 kB / 0.5125 GB, free: 1.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.5377, allocations: 0.8162 MB / 0.5133 GB, free: 1.316 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.5381, allocations: 0.8305 MB / 0.5141 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002466/0.5384, allocations: 60.52 kB / 0.5142 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.5385, allocations: 34.3 kB / 0.5142 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.5385, allocations: 5 kB / 0.5142 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of Templates: time 0.01129/0.5498, allocations: 4.391 MB / 0.5185 GB, free: 316 kB / 382.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.makefile (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)