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.001096/0.001096, allocations: 112.5 kB / 16.42 MB, free: 6.52 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.001089/0.001089, allocations: 183.9 kB / 17.34 MB, free: 5.734 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.287/1.287, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1689/0.1689, allocations: 31.13 MB / 322.3 MB, free: 44 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 60.09 kB / 447.4 MB, free: 1.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09796/0.09929, allocations: 56.36 MB / 0.4919 GB, free: 9.301 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007612/0.1069, allocations: 6.796 MB / 0.4985 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.1091, allocations: 0.9972 MB / 0.4995 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006518/0.1098, allocations: 23.88 kB / 0.4995 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004411/0.1103, allocations: 103 kB / 0.4996 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003795/0.1107, allocations: 79.25 kB / 0.4997 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007415/0.1114, allocations: 231.5 kB / 0.4999 GB, free: 1.047 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006656/0.1121, allocations: 0.5697 MB / 0.5005 GB, free: 484 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004088/0.1125, allocations: 309.3 kB / 0.5008 GB, free: 168 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1929/0.3054, allocations: 224.5 kB / 0.501 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003514/0.3058, allocations: 240.8 kB / 0.5012 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001171/0.3059, allocations: 56.47 kB / 0.5013 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000142/0.3061, allocations: 67.36 kB / 0.5013 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.3062, allocations: 130.1 kB / 0.5015 GB, free: 6.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002248/0.3065, allocations: 265.5 kB / 0.5017 GB, free: 6.258 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006347/0.3071, allocations: 0.5697 MB / 0.5023 GB, free: 6.164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.3071, allocations: 0.5 kB / 0.5023 GB, free: 6.164 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3071, allocations: 1.844 kB / 0.5023 GB, free: 6.164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.3071, allocations: 0 / 0.5023 GB, free: 6.164 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.001132/0.3083, allocations: 0.8011 MB / 0.5031 GB, free: 5.645 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.3083, allocations: 13.19 kB / 0.5031 GB, free: 5.641 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003049/0.3086, allocations: 77.41 kB / 0.5032 GB, free: 5.613 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005006/0.3091, allocations: 408.7 kB / 0.5035 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.486e-05/0.3092, allocations: 45.56 kB / 0.5036 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.777e-05/0.3093, allocations: 65.11 kB / 0.5036 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007316/0.31, allocations: 0.4958 MB / 0.5041 GB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.3101, allocations: 0.8438 kB / 0.5041 GB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.644e-05/0.3101, allocations: 19.84 kB / 0.5042 GB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.3101, allocations: 13.72 kB / 0.5042 GB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000643/0.3108, allocations: 306.8 kB / 0.5045 GB, free: 5.254 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001967/0.3127, allocations: 1.859 MB / 0.5063 GB, free: 4.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006031/0.3134, allocations: 303.2 kB / 0.5066 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002919/0.3137, allocations: 184.3 kB / 0.5067 GB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.3137, allocations: 6.078 kB / 0.5067 GB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.881e-05/0.3137, allocations: 39.72 kB / 0.5068 GB, free: 4.086 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.776e-06/0.3137, allocations: 1.5 kB / 0.5068 GB, free: 4.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008419/0.3146, allocations: 388 kB / 0.5072 GB, free: 4.027 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.3146, allocations: 166.6 kB / 0.5073 GB, free: 3.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003126/0.3149, allocations: 318.4 kB / 0.5076 GB, free: 3.719 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.315, allocations: 42.92 kB / 0.5077 GB, free: 3.688 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.3151, allocations: 267.7 kB / 0.5079 GB, free: 3.527 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.477e-05/0.3152, allocations: 102 kB / 0.508 GB, free: 3.465 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.3153, allocations: 104.1 kB / 0.5081 GB, free: 3.441 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.192e-05/0.3154, allocations: 346.7 kB / 0.5084 GB, free: 3.129 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003309/0.3158, allocations: 147.2 kB / 0.5086 GB, free: 3.129 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003764/0.3161, allocations: 264.8 kB / 0.5088 GB, free: 3.004 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005581/0.3167, allocations: 366.1 kB / 0.5092 GB, free: 2.883 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.3167, allocations: 2.906 kB / 0.5092 GB, free: 2.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000843/0.3176, allocations: 476.6 kB / 0.5096 GB, free: 2.816 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.3176, allocations: 12.5 kB / 0.5097 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.3176, allocations: 3.312 kB / 0.5097 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/0.3176, allocations: 9.938 kB / 0.5097 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.3179, allocations: 68.19 kB / 0.5097 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.822e-05/0.3179, allocations: 8.406 kB / 0.5097 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002589/0.3182, allocations: 67.73 kB / 0.5098 GB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.672e-05/0.3183, allocations: 20.45 kB / 0.5098 GB, free: 2.781 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.0001806/0.3184, allocations: 194.8 kB / 0.51 GB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.3185, allocations: 32.47 kB / 0.51 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.385e-05/0.3186, allocations: 44.81 kB / 0.5101 GB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.3187, allocations: 3.234 kB / 0.5101 GB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3187, allocations: 4.844 kB / 0.5101 GB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.3188, allocations: 140.4 kB / 0.5102 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.853e-05/0.3188, allocations: 12.08 kB / 0.5102 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002815/0.3191, allocations: 16.23 kB / 0.5102 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.575e-05/0.3192, allocations: 24.97 kB / 0.5103 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008398/0.3201, allocations: 0.6388 MB / 0.5109 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008307/0.3209, allocations: 0.8306 MB / 0.5117 GB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002645/0.3212, allocations: 145 kB / 0.5118 GB, free: 1.703 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002021/0.3214, allocations: 209.6 kB / 0.512 GB, free: 1.625 MB / 382.1 MB Notification: Performance of Backend: time 3.61e-07/0.3214, allocations: 7.938 kB / 0.5121 GB, free: 1.617 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001028/0.3224, allocations: 337.4 kB / 0.5124 GB, free: 1.543 MB / 382.1 MB Notification: Performance of SimCode: time 0.001365/0.3238, allocations: 1.211 MB / 0.5136 GB, free: 16.68 MB / 398.1 MB Notification: Performance of Templates: time 0.01054/0.3344, allocations: 5.015 MB / 0.5185 GB, free: 16.36 MB / 398.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)