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.001194/0.001194, allocations: 102.1 kB / 15.99 MB, free: 5.891 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.001337/0.001338, allocations: 192.6 kB / 16.91 MB, free: 5.746 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.29/1.29, allocations: 222.9 MB / 240.6 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.2766/0.2766, allocations: 31.16 MB / 321.9 MB, free: 4.605 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 59.91 kB / 389.1 MB, free: 2.965 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2472/0.2486, allocations: 56.34 MB / 445.5 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006103/0.2547, allocations: 7.332 MB / 452.8 MB, free: 29.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001938/0.2567, allocations: 1.069 MB / 453.9 MB, free: 28.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004149/0.2571, allocations: 30.19 kB / 453.9 MB, free: 28.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002969/0.2575, allocations: 80.94 kB / 454 MB, free: 28.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002028/0.2577, allocations: 55.02 kB / 454 MB, free: 28.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005397/0.2582, allocations: 190.4 kB / 454.2 MB, free: 28.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004074/0.2587, allocations: 0.5677 MB / 454.8 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003448/0.259, allocations: 310.2 kB / 455.1 MB, free: 27.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001983/0.2592, allocations: 231.7 kB / 455.3 MB, free: 27.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001943/0.2594, allocations: 239.1 kB / 455.5 MB, free: 27.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.968e-05/0.2595, allocations: 55.06 kB / 455.6 MB, free: 27.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.395e-05/0.2596, allocations: 65.33 kB / 455.6 MB, free: 27.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.986e-05/0.2597, allocations: 133.1 kB / 455.8 MB, free: 27.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.2598, allocations: 259.1 kB / 456 MB, free: 27.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003402/0.2602, allocations: 434.7 kB / 456.5 MB, free: 27.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.2602, allocations: 3.188 kB / 456.5 MB, free: 27.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2602, allocations: 0 / 456.5 MB, free: 27.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.2602, allocations: 0 / 456.5 MB, free: 27.01 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.00108/0.2613, allocations: 0.7863 MB / 457.2 MB, free: 26.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.2614, allocations: 9.094 kB / 457.3 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000293/0.2617, allocations: 80.83 kB / 457.3 MB, free: 26.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003881/0.2621, allocations: 388 kB / 457.7 MB, free: 26.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.955e-05/0.2621, allocations: 50.73 kB / 457.8 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.242e-05/0.2622, allocations: 61.03 kB / 457.8 MB, free: 26.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007645/0.263, allocations: 0.49 MB / 458.3 MB, free: 25.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.263, allocations: 0 / 458.3 MB, free: 25.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.941e-05/0.263, allocations: 25.47 kB / 458.3 MB, free: 25.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.263, allocations: 12.69 kB / 458.3 MB, free: 25.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000564/0.2636, allocations: 307.6 kB / 458.6 MB, free: 25.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001916/0.2655, allocations: 1.875 MB / 460.5 MB, free: 24.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005878/0.2661, allocations: 304.3 kB / 460.8 MB, free: 24.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002827/0.2664, allocations: 179 kB / 461 MB, free: 24.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/0.2665, allocations: 12.45 kB / 461 MB, free: 24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.972e-05/0.2665, allocations: 41.41 kB / 461 MB, free: 23.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.994e-06/0.2665, allocations: 0 / 461 MB, free: 23.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007742/0.2673, allocations: 387 kB / 461.4 MB, free: 23.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.2673, allocations: 157.8 kB / 461.6 MB, free: 23.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002873/0.2676, allocations: 312.8 kB / 461.9 MB, free: 23.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.2677, allocations: 42.42 kB / 461.9 MB, free: 23.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.2678, allocations: 257.7 kB / 462.2 MB, free: 23.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.463e-05/0.2679, allocations: 100.3 kB / 462.3 MB, free: 23.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.268, allocations: 108.1 kB / 462.4 MB, free: 23.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.894e-05/0.2681, allocations: 345.3 kB / 462.7 MB, free: 22.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003102/0.2684, allocations: 146.4 kB / 462.9 MB, free: 22.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003487/0.2688, allocations: 259.5 kB / 463.1 MB, free: 22.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005316/0.2693, allocations: 369.7 kB / 463.5 MB, free: 22.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2693, allocations: 1.062 kB / 463.5 MB, free: 22.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0007967/0.2702, allocations: 484 kB / 464 MB, free: 22.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.2702, allocations: 9.656 kB / 464 MB, free: 22.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.2702, allocations: 7.188 kB / 464 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.2702, allocations: 6.344 kB / 464 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002617/0.2705, allocations: 66.61 kB / 464 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.2705, allocations: 10.34 kB / 464 MB, free: 22.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002635/0.2708, allocations: 64.59 kB / 464.1 MB, free: 21.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.317e-05/0.2708, allocations: 18.53 kB / 464.1 MB, free: 21.99 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.0001856/0.271, allocations: 200.6 kB / 464.3 MB, free: 21.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.2711, allocations: 34.97 kB / 464.4 MB, free: 21.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.221e-05/0.2712, allocations: 40.08 kB / 464.4 MB, free: 21.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.2712, allocations: 6.328 kB / 464.4 MB, free: 21.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.2712, allocations: 2.562 kB / 464.4 MB, free: 21.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2712, allocations: 0 / 464.4 MB, free: 21.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001404/0.2726, allocations: 1.226 MB / 465.6 MB, free: 20.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.2727, allocations: 3.219 kB / 465.6 MB, free: 20.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002156/0.2729, allocations: 46.02 kB / 465.7 MB, free: 20.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.75e-06/0.2729, allocations: 3.281 kB / 465.7 MB, free: 20.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.604e-05/0.2729, allocations: 14.78 kB / 465.7 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.2729, allocations: 4.297 kB / 465.7 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.2729, allocations: 2.406 kB / 465.7 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007662/0.2737, allocations: 0.5605 MB / 466.3 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.2738, allocations: 137.3 kB / 466.4 MB, free: 20.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.814e-05/0.2739, allocations: 12.14 kB / 466.4 MB, free: 20.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.2741, allocations: 17.33 kB / 466.4 MB, free: 20.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.841e-05/0.2742, allocations: 39.66 kB / 466.5 MB, free: 20.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.2742, allocations: 13.52 kB / 466.5 MB, free: 20.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002068/0.2744, allocations: 209.6 kB / 466.7 MB, free: 20.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.2745, allocations: 0 / 466.7 MB, free: 20.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004423/0.2749, allocations: 120.1 kB / 466.8 MB, free: 20.19 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.0001126/0.275, allocations: 113 kB / 466.9 MB, free: 20.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007545/0.2758, allocations: 368.2 kB / 467.3 MB, free: 19.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.2758, allocations: 1.562 kB / 467.3 MB, free: 19.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002753/0.2761, allocations: 142.4 kB / 467.4 MB, free: 19.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006257/0.2767, allocations: 121.8 kB / 467.5 MB, free: 19.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.278, allocations: 1.047 MB / 468.6 MB, free: 19.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002823/0.2783, allocations: 0.8297 MB / 469.4 MB, free: 18.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.2785, allocations: 38.72 kB / 469.4 MB, free: 18.39 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2785, allocations: 0 / 469.4 MB, free: 18.39 MB / 350.1 MB Notification: Performance of Templates: time 0.009341/0.2878, allocations: 5.197 MB / 474.6 MB, free: 17.78 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)