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.001058/0.001058, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001183/0.001183, allocations: 197.9 kB / 16.26 MB, free: 6.625 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.3/1.3, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2774/0.2774, allocations: 31.18 MB / 321.2 MB, free: 4.641 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 71.88 kB / 388.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2786, allocations: 56.35 MB / 444.8 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005993/0.2846, allocations: 7.324 MB / 452.1 MB, free: 29.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.2862, allocations: 1.075 MB / 453.2 MB, free: 28.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003137/0.2865, allocations: 26.25 kB / 453.2 MB, free: 28.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002599/0.2868, allocations: 87.69 kB / 453.3 MB, free: 28.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001826/0.287, allocations: 50.98 kB / 453.4 MB, free: 28.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004852/0.2875, allocations: 193.8 kB / 453.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003891/0.2879, allocations: 0.57 MB / 454.1 MB, free: 28.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003274/0.2882, allocations: 301.4 kB / 454.4 MB, free: 28.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.2884, allocations: 223.8 kB / 454.6 MB, free: 27.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001812/0.2886, allocations: 241.8 kB / 454.9 MB, free: 27.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.927e-05/0.2886, allocations: 56.41 kB / 454.9 MB, free: 27.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.987e-05/0.2887, allocations: 67.84 kB / 455 MB, free: 27.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.246e-05/0.2888, allocations: 129.1 kB / 455.1 MB, free: 27.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.289, allocations: 267.4 kB / 455.4 MB, free: 27.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000369/0.2894, allocations: 0.5538 MB / 455.9 MB, free: 27.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.2894, allocations: 0 / 455.9 MB, free: 27.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2894, allocations: 0 / 455.9 MB, free: 27.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.2894, allocations: 0 / 455.9 MB, free: 27.24 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.001026/0.2904, allocations: 0.7938 MB / 456.7 MB, free: 26.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.2905, allocations: 8.969 kB / 456.7 MB, free: 26.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002857/0.2908, allocations: 74.28 kB / 456.8 MB, free: 26.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003736/0.2911, allocations: 384.3 kB / 457.2 MB, free: 26.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.997e-05/0.2912, allocations: 45.66 kB / 457.2 MB, free: 26.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.435e-05/0.2913, allocations: 62 kB / 457.3 MB, free: 26.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007347/0.292, allocations: 499.1 kB / 457.8 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.292, allocations: 1.406 kB / 457.8 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.632e-05/0.2921, allocations: 20.44 kB / 457.8 MB, free: 25.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.2921, allocations: 12.84 kB / 457.8 MB, free: 25.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006002/0.2927, allocations: 311.7 kB / 458.1 MB, free: 25.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.2946, allocations: 1.876 MB / 460 MB, free: 24.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005865/0.2952, allocations: 304.7 kB / 460.3 MB, free: 24.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002693/0.2954, allocations: 180.2 kB / 460.5 MB, free: 24.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.2955, allocations: 7.953 kB / 460.5 MB, free: 24.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/0.2955, allocations: 44.86 kB / 460.5 MB, free: 24.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.473e-06/0.2955, allocations: 0 / 460.5 MB, free: 24.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007657/0.2963, allocations: 381 kB / 460.9 MB, free: 24.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.492e-05/0.2963, allocations: 163.1 kB / 461 MB, free: 23.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002957/0.2966, allocations: 315.5 kB / 461.4 MB, free: 23.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.2967, allocations: 43.08 kB / 461.4 MB, free: 23.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.2968, allocations: 260.4 kB / 461.6 MB, free: 23.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.766e-05/0.2969, allocations: 102.8 kB / 461.7 MB, free: 23.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.297, allocations: 103.2 kB / 461.8 MB, free: 23.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.9e-05/0.2971, allocations: 347.3 kB / 462.2 MB, free: 22.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003187/0.2974, allocations: 149.5 kB / 462.3 MB, free: 22.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003518/0.2978, allocations: 260.8 kB / 462.6 MB, free: 22.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005319/0.2983, allocations: 366.6 kB / 462.9 MB, free: 22.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.2983, allocations: 0 / 462.9 MB, free: 22.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0007976/0.2991, allocations: 481.7 kB / 463.4 MB, free: 22.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.2991, allocations: 9.719 kB / 463.4 MB, free: 22.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2992, allocations: 3.375 kB / 463.4 MB, free: 22.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.2992, allocations: 10.95 kB / 463.4 MB, free: 22.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002693/0.2995, allocations: 69.2 kB / 463.5 MB, free: 22.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.2995, allocations: 6.812 kB / 463.5 MB, free: 22.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002513/0.2997, allocations: 61.3 kB / 463.6 MB, free: 22.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.426e-05/0.2998, allocations: 19.28 kB / 463.6 MB, free: 22.23 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,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.0001699/0.2999, allocations: 195.1 kB / 463.8 MB, free: 22.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.997e-05/0.3001, allocations: 35.41 kB / 463.8 MB, free: 22.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.647e-05/0.3001, allocations: 44.67 kB / 463.9 MB, free: 22.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.708e-06/0.3001, allocations: 4.562 kB / 463.9 MB, free: 22.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.3002, allocations: 1.625 kB / 463.9 MB, free: 22.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.3002, allocations: 3.391 kB / 463.9 MB, free: 22.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001377/0.3015, allocations: 1.218 MB / 465.1 MB, free: 21.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3016, allocations: 2.406 kB / 465.1 MB, free: 21.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002223/0.3018, allocations: 50.3 kB / 465.1 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.3018, allocations: 3.469 kB / 465.1 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/0.3018, allocations: 14.84 kB / 465.2 MB, free: 21.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.3018, allocations: 11.94 kB / 465.2 MB, free: 21.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3019, allocations: 3.125 kB / 465.2 MB, free: 21.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007685/0.3026, allocations: 0.5589 MB / 465.7 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.3027, allocations: 142.3 kB / 465.9 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.883e-05/0.3028, allocations: 10.83 kB / 465.9 MB, free: 20.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002067/0.303, allocations: 17.89 kB / 465.9 MB, free: 20.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.657e-05/0.3031, allocations: 32.64 kB / 465.9 MB, free: 20.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.3031, allocations: 16.48 kB / 465.9 MB, free: 20.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002029/0.3034, allocations: 210.8 kB / 466.2 MB, free: 20.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3034, allocations: 4 kB / 466.2 MB, free: 20.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004113/0.3038, allocations: 115.8 kB / 466.3 MB, free: 20.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.0001045/0.3039, allocations: 115.1 kB / 466.4 MB, free: 20.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007369/0.3046, allocations: 365 kB / 466.7 MB, free: 20.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3046, allocations: 5.219 kB / 466.7 MB, free: 20.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002867/0.3049, allocations: 152.3 kB / 466.9 MB, free: 20.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006014/0.3055, allocations: 108.8 kB / 467 MB, free: 20.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.3068, allocations: 1.007 MB / 468 MB, free: 19.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.3071, allocations: 0.8221 MB / 468.8 MB, free: 18.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002327/0.3073, allocations: 66.81 kB / 468.9 MB, free: 18.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.506e-05/0.3074, allocations: 39.52 kB / 468.9 MB, free: 18.66 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3074, allocations: 0 / 468.9 MB, free: 18.66 MB / 350.1 MB Notification: Performance of Templates: time 0.00897/0.3164, allocations: 4.208 MB / 473.1 MB, free: 18.34 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)