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.001031/0.001031, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.00138/0.00138, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.553/1.553, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3308/0.3308, allocations: 31.2 MB / 322.3 MB, free: 5.051 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003491/0.0003491, allocations: 12 kB / 390.2 MB, free: 2.473 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3567, allocations: 57.39 MB / 447.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005787/0.3626, allocations: 6.539 MB / 454.1 MB, free: 29.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.3646, allocations: 1.058 MB / 455.2 MB, free: 28.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003645/0.365, allocations: 27.09 kB / 455.2 MB, free: 28.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002496/0.3652, allocations: 91.94 kB / 455.3 MB, free: 28.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002247/0.3655, allocations: 92.62 kB / 455.4 MB, free: 28.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005283/0.366, allocations: 175 kB / 455.5 MB, free: 28.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000404/0.3664, allocations: 0.5024 MB / 456 MB, free: 28.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003466/0.3668, allocations: 227.9 kB / 456.3 MB, free: 28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.367, allocations: 165.4 kB / 456.4 MB, free: 27.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.3672, allocations: 178.3 kB / 456.6 MB, free: 27.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.044e-05/0.3672, allocations: 18.38 kB / 456.6 MB, free: 27.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.615e-05/0.3673, allocations: 26.25 kB / 456.6 MB, free: 27.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.698e-05/0.3674, allocations: 88.14 kB / 456.7 MB, free: 27.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.614e-05/0.3675, allocations: 109 kB / 456.8 MB, free: 27.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003172/0.3678, allocations: 415.8 kB / 457.2 MB, free: 27.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3678, allocations: 0 / 457.2 MB, free: 27.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3678, allocations: 0 / 457.2 MB, free: 27.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.3678, allocations: 2.688 kB / 457.2 MB, free: 27.59 MB / 350.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.001006/0.3688, allocations: 0.6998 MB / 457.9 MB, free: 27.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.3689, allocations: 8.25 kB / 458 MB, free: 27.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000289/0.3692, allocations: 72.77 kB / 458 MB, free: 27.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004358/0.3696, allocations: 376.7 kB / 458.4 MB, free: 26.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.108e-05/0.3697, allocations: 44.94 kB / 458.4 MB, free: 26.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.76e-05/0.3697, allocations: 67.05 kB / 458.5 MB, free: 26.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007702/0.3705, allocations: 0.4937 MB / 459 MB, free: 26.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.3705, allocations: 1.469 kB / 459 MB, free: 26.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.839e-05/0.3706, allocations: 16 kB / 459 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.609e-05/0.3706, allocations: 17.17 kB / 459 MB, free: 26.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006242/0.3712, allocations: 321.9 kB / 459.3 MB, free: 26.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.3732, allocations: 1.874 MB / 461.2 MB, free: 24.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006028/0.3739, allocations: 306 kB / 461.5 MB, free: 24.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003027/0.3742, allocations: 184 kB / 461.7 MB, free: 24.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.3742, allocations: 7.703 kB / 461.7 MB, free: 24.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.3742, allocations: 42.17 kB / 461.7 MB, free: 24.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.813e-06/0.3742, allocations: 0 / 461.7 MB, free: 24.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008762/0.3751, allocations: 400.8 kB / 462.1 MB, free: 24.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/0.3752, allocations: 164.7 kB / 462.3 MB, free: 24.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/0.3755, allocations: 310.7 kB / 462.6 MB, free: 24.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.833e-05/0.3755, allocations: 44.27 kB / 462.6 MB, free: 24.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.3757, allocations: 263.4 kB / 462.9 MB, free: 23.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.486e-05/0.3758, allocations: 100.5 kB / 463 MB, free: 23.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.325e-05/0.3758, allocations: 10.38 kB / 463 MB, free: 23.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.16e-05/0.3759, allocations: 350 kB / 463.4 MB, free: 23.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003291/0.3762, allocations: 152 kB / 463.5 MB, free: 23.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003804/0.3766, allocations: 254.9 kB / 463.8 MB, free: 23.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000349/0.377, allocations: 173.4 kB / 463.9 MB, free: 23.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.377, allocations: 1 kB / 463.9 MB, free: 23.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008599/0.3778, allocations: 483.6 kB / 464.4 MB, free: 22.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.3779, allocations: 7.016 kB / 464.4 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.3779, allocations: 2.969 kB / 464.4 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.3779, allocations: 6.219 kB / 464.4 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000267/0.3782, allocations: 72.67 kB / 464.5 MB, free: 22.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.3782, allocations: 5.531 kB / 464.5 MB, free: 22.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002331/0.3784, allocations: 65.25 kB / 464.5 MB, free: 22.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.605e-05/0.3785, allocations: 23.25 kB / 464.6 MB, free: 22.88 MB / 350.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,$PRE.inventory.inflow.stopOutflow,inventory.inflow.stopOutflow,$PRE.inventory.outflow.stopOutflow,inventory.outflow.stopOutflow,shipping.portA.stopOutflow,shipping.portB.stopInflow,$PRE.shipping.useA_rate,shipping.useA_rate,$PRE.shipping.useB_rate,shipping.useB_rate,producing.growing.portA.stopOutflow,producing.growing.portB.stopInflow,producing.growing.portB.stopOutflow,$PRE.producing.growing.useA_rate,producing.growing.useA_rate,$PRE.producing.growing.useB_rate,producing.growing.useB_rate,shipping.portB.stopOutflow,producing.growing.portA.stopInflow,shipping.portA.stopInflow,inventory.outflow.stopInflow,producing.cloud.massPort.stopInflow,installedBase.inflow.stopOutflow,inventory.inflow.stopInflow,producing.cloud.massPort.stopOutflow,installedBase.inflow.stopInflow) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002156/0.3787, allocations: 198.3 kB / 464.8 MB, free: 22.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.3788, allocations: 36.56 kB / 464.8 MB, free: 22.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.164e-05/0.3789, allocations: 44.11 kB / 464.8 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3789, allocations: 4.125 kB / 464.8 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3789, allocations: 5.156 kB / 464.9 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.3789, allocations: 3.516 kB / 464.9 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001468/0.3804, allocations: 1.229 MB / 466.1 MB, free: 21.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3804, allocations: 1.344 kB / 466.1 MB, free: 21.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002109/0.3807, allocations: 52.48 kB / 466.1 MB, free: 21.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.407e-06/0.3807, allocations: 7.953 kB / 466.1 MB, free: 21.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.835e-05/0.3807, allocations: 11.02 kB / 466.2 MB, free: 21.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.111e-06/0.3807, allocations: 3.734 kB / 466.2 MB, free: 21.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.3807, allocations: 7.094 kB / 466.2 MB, free: 21.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008166/0.3816, allocations: 0.5724 MB / 466.7 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.3817, allocations: 137.9 kB / 466.9 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.907e-05/0.3817, allocations: 14.83 kB / 466.9 MB, free: 21.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.3819, allocations: 23.66 kB / 466.9 MB, free: 21.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.152e-05/0.382, allocations: 29.06 kB / 466.9 MB, free: 21.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.3821, allocations: 13.55 kB / 467 MB, free: 21.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002141/0.3823, allocations: 207.6 kB / 467.2 MB, free: 21.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3823, allocations: 0 / 467.2 MB, free: 21.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004389/0.3827, allocations: 112 kB / 467.3 MB, free: 21.08 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001175/0.3829, allocations: 122.6 kB / 467.4 MB, free: 20.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007104/0.3836, allocations: 355.6 kB / 467.7 MB, free: 20.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3836, allocations: 5.438 kB / 467.7 MB, free: 20.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003112/0.3839, allocations: 160.7 kB / 467.9 MB, free: 20.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006143/0.3845, allocations: 100.1 kB / 468 MB, free: 20.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001314/0.3859, allocations: 0.9828 MB / 469 MB, free: 20.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.3862, allocations: 0.8226 MB / 469.8 MB, free: 19.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002448/0.3864, allocations: 71.36 kB / 469.9 MB, free: 19.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.349e-05/0.3865, allocations: 33.44 kB / 469.9 MB, free: 19.36 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3865, allocations: 3.938 kB / 469.9 MB, free: 19.36 MB / 350.1 MB Notification: Performance of Templates: time 0.009566/0.3961, allocations: 3.838 MB / 473.7 MB, free: 19.05 MB / 350.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)