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.001107/0.001107, allocations: 109.2 kB / 16.41 MB, free: 6.465 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.001044/0.001044, allocations: 188.3 kB / 17.34 MB, free: 5.711 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.31/1.31, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1663/0.1663, allocations: 31.17 MB / 322.4 MB, free: 188 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 59.89 kB / 447.4 MB, free: 1.762 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09427/0.09574, allocations: 56.36 MB / 0.492 GB, free: 9.359 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007781/0.1036, allocations: 6.785 MB / 0.4986 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.1057, allocations: 1.001 MB / 0.4996 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005323/0.1063, allocations: 19.88 kB / 0.4996 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003722/0.1067, allocations: 111 kB / 0.4997 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003277/0.107, allocations: 79.25 kB / 0.4998 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007096/0.1078, allocations: 227.5 kB / 0.5 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006781/0.1084, allocations: 0.5697 MB / 0.5005 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000461/0.1089, allocations: 309.3 kB / 0.5008 GB, free: 236 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002918/0.1092, allocations: 227.1 kB / 0.501 GB, free: 8 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1942/0.3034, allocations: 236 kB / 0.5013 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000161/0.3036, allocations: 57.09 kB / 0.5013 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000151/0.3038, allocations: 63.3 kB / 0.5014 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.3039, allocations: 136.4 kB / 0.5015 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003041/0.3042, allocations: 260 kB / 0.5018 GB, free: 6.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007924/0.305, allocations: 0.571 MB / 0.5023 GB, free: 6.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.3051, allocations: 2.375 kB / 0.5023 GB, free: 6.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3051, allocations: 0 / 0.5023 GB, free: 6.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.3051, allocations: 0 / 0.5023 GB, free: 6.43 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.001154/0.3062, allocations: 0.8049 MB / 0.5031 GB, free: 5.906 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.3063, allocations: 8.797 kB / 0.5031 GB, free: 5.906 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003105/0.3066, allocations: 81.67 kB / 0.5032 GB, free: 5.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004676/0.3071, allocations: 408 kB / 0.5036 GB, free: 5.637 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.176e-05/0.3071, allocations: 44.19 kB / 0.5036 GB, free: 5.637 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.398e-05/0.3072, allocations: 62.67 kB / 0.5037 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007667/0.308, allocations: 0.497 MB / 0.5042 GB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.308, allocations: 0.6562 kB / 0.5042 GB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.805e-05/0.3081, allocations: 21.44 kB / 0.5042 GB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.3081, allocations: 13.81 kB / 0.5042 GB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006505/0.3087, allocations: 308.4 kB / 0.5045 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00198/0.3107, allocations: 1.861 MB / 0.5063 GB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005945/0.3113, allocations: 307 kB / 0.5066 GB, free: 4.422 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002982/0.3117, allocations: 180.7 kB / 0.5068 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.3117, allocations: 3.672 kB / 0.5068 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.3117, allocations: 41.5 kB / 0.5068 GB, free: 4.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.994e-06/0.3117, allocations: 0.5 kB / 0.5068 GB, free: 4.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008469/0.3126, allocations: 390.6 kB / 0.5072 GB, free: 4.289 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.45e-05/0.3126, allocations: 162.5 kB / 0.5074 GB, free: 4.102 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003081/0.3129, allocations: 321.1 kB / 0.5077 GB, free: 3.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.508e-05/0.313, allocations: 42.53 kB / 0.5077 GB, free: 3.949 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.3131, allocations: 259.1 kB / 0.5079 GB, free: 3.789 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.813e-05/0.3132, allocations: 105.4 kB / 0.508 GB, free: 3.727 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/0.3134, allocations: 108.6 kB / 0.5081 GB, free: 3.699 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.677e-05/0.3134, allocations: 351.7 kB / 0.5085 GB, free: 3.383 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003292/0.3138, allocations: 145.6 kB / 0.5086 GB, free: 3.383 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003687/0.3141, allocations: 259.4 kB / 0.5089 GB, free: 3.262 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005461/0.3147, allocations: 367.1 kB / 0.5092 GB, free: 3.141 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3147, allocations: 1.5 kB / 0.5092 GB, free: 3.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008269/0.3155, allocations: 478 kB / 0.5097 GB, free: 3.074 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.3156, allocations: 6.656 kB / 0.5097 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.3156, allocations: 4.906 kB / 0.5097 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.3156, allocations: 8.844 kB / 0.5097 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.3159, allocations: 68.41 kB / 0.5098 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/0.3159, allocations: 10.55 kB / 0.5098 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.3162, allocations: 60.33 kB / 0.5098 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.502e-05/0.3162, allocations: 23.59 kB / 0.5099 GB, free: 3.039 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.000178/0.3164, allocations: 197.5 kB / 0.51 GB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.3165, allocations: 36.05 kB / 0.5101 GB, free: 2.906 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.487e-05/0.3166, allocations: 44.5 kB / 0.5101 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.3166, allocations: 3 kB / 0.5101 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.3166, allocations: 1.25 kB / 0.5101 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.3168, allocations: 136.3 kB / 0.5103 GB, free: 2.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.678e-05/0.3168, allocations: 9.062 kB / 0.5103 GB, free: 2.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002844/0.3171, allocations: 23 kB / 0.5103 GB, free: 2.766 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.14e-05/0.3172, allocations: 25.23 kB / 0.5103 GB, free: 2.766 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00084/0.318, allocations: 0.6426 MB / 0.5109 GB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008133/0.3189, allocations: 0.8292 MB / 0.5117 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002572/0.3191, allocations: 144.4 kB / 0.5119 GB, free: 1.961 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001988/0.3193, allocations: 210.8 kB / 0.5121 GB, free: 1.883 MB / 382.1 MB Notification: Performance of Backend: time 5.51e-07/0.3193, allocations: 0 / 0.5121 GB, free: 1.883 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.3204, allocations: 339.1 kB / 0.5124 GB, free: 1.805 MB / 382.1 MB Notification: Performance of SimCode: time 0.001315/0.3217, allocations: 1.215 MB / 0.5136 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of Templates: time 0.01004/0.3317, allocations: 5.013 MB / 0.5185 GB, free: 0.6289 MB / 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)