Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.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.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 193.9 kB / 16.53 MB, free: 6.664 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.337/1.337, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.4584/0.4584, allocations: 31.12 MB / 321.5 MB, free: 4.281 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 67.89 kB / 388.9 MB, free: 2.434 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2782, allocations: 56.36 MB / 445.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004873/0.2831, allocations: 5.382 MB / 450.6 MB, free: 30.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009906/0.2841, allocations: 0.6096 MB / 451.2 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001854/0.2843, allocations: 12.22 kB / 451.3 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.2845, allocations: 80.44 kB / 451.3 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001457/0.2847, allocations: 70.94 kB / 451.4 MB, free: 30.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004233/0.2851, allocations: 185.3 kB / 451.6 MB, free: 29.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003099/0.2854, allocations: 459.9 kB / 452 MB, free: 29.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.2857, allocations: 211.6 kB / 452.2 MB, free: 29.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.2859, allocations: 191.2 kB / 452.4 MB, free: 29.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/0.286, allocations: 194.6 kB / 452.6 MB, free: 29.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.216e-05/0.2861, allocations: 44.62 kB / 452.7 MB, free: 29.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.133e-05/0.2862, allocations: 53.88 kB / 452.7 MB, free: 29.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.453e-05/0.2863, allocations: 102.5 kB / 452.8 MB, free: 29.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001375/0.2864, allocations: 216.4 kB / 453 MB, free: 29.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003721/0.2868, allocations: 449.5 kB / 453.5 MB, free: 28.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2868, allocations: 3.938 kB / 453.5 MB, free: 28.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.2868, allocations: 7.547 kB / 453.5 MB, free: 28.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.2868, allocations: 0 / 453.5 MB, free: 28.94 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0009563/0.2878, allocations: 0.6847 MB / 454.2 MB, free: 28.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.2878, allocations: 10.56 kB / 454.2 MB, free: 28.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002948/0.2881, allocations: 67.94 kB / 454.2 MB, free: 28.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003265/0.2885, allocations: 321.9 kB / 454.5 MB, free: 28.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.487e-05/0.2885, allocations: 35.66 kB / 454.6 MB, free: 28.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.233e-05/0.2886, allocations: 53.94 kB / 454.6 MB, free: 28.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005888/0.2892, allocations: 415.6 kB / 455 MB, free: 27.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.2892, allocations: 6.562 kB / 455 MB, free: 27.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.032e-05/0.2892, allocations: 14.66 kB / 455.1 MB, free: 27.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.2893, allocations: 11.41 kB / 455.1 MB, free: 27.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004701/0.2897, allocations: 242.1 kB / 455.3 MB, free: 27.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001582/0.2913, allocations: 1.666 MB / 457 MB, free: 26.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004724/0.2918, allocations: 252.5 kB / 457.2 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002343/0.2921, allocations: 162.1 kB / 457.4 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.629e-05/0.2921, allocations: 3.906 kB / 457.4 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.2921, allocations: 44.81 kB / 457.4 MB, free: 26.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.382e-06/0.2921, allocations: 0 / 457.4 MB, free: 26.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007058/0.2928, allocations: 346.2 kB / 457.8 MB, free: 26.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.256e-05/0.2929, allocations: 166.8 kB / 457.9 MB, free: 25.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002461/0.2931, allocations: 269.7 kB / 458.2 MB, free: 25.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.312e-05/0.2932, allocations: 38.14 kB / 458.2 MB, free: 25.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.2933, allocations: 213.6 kB / 458.4 MB, free: 25.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.724e-05/0.2934, allocations: 92.17 kB / 458.5 MB, free: 25.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.2935, allocations: 103.3 kB / 458.6 MB, free: 25.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.109e-05/0.2936, allocations: 340.3 kB / 459 MB, free: 25.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002889/0.2939, allocations: 138 kB / 459.1 MB, free: 24.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003287/0.2942, allocations: 252.2 kB / 459.3 MB, free: 24.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004879/0.2947, allocations: 345.8 kB / 459.7 MB, free: 24.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.2947, allocations: 3.594 kB / 459.7 MB, free: 24.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007379/0.2954, allocations: 447.7 kB / 460.1 MB, free: 24.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.2955, allocations: 6.594 kB / 460.1 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.2955, allocations: 3.625 kB / 460.1 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.2955, allocations: 5.516 kB / 460.1 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002352/0.2957, allocations: 72.52 kB / 460.2 MB, free: 24.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.2958, allocations: 6.422 kB / 460.2 MB, free: 24.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002354/0.296, allocations: 58.02 kB / 460.3 MB, free: 24.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.899e-05/0.296, allocations: 21.88 kB / 460.3 MB, free: 24.32 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 (60): * Single equations (assignments): 60 * 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.0001509/0.2962, allocations: 184.2 kB / 460.5 MB, free: 24.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.873e-05/0.2963, allocations: 33.62 kB / 460.5 MB, free: 24.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.874e-05/0.2964, allocations: 35.17 kB / 460.5 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.2964, allocations: 9.453 kB / 460.5 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.2964, allocations: 1.062 kB / 460.5 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.2964, allocations: 1.188 kB / 460.6 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.2978, allocations: 1.174 MB / 461.7 MB, free: 23.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.2978, allocations: 4.75 kB / 461.7 MB, free: 23.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001859/0.298, allocations: 40.48 kB / 461.8 MB, free: 23.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.298, allocations: 8.297 kB / 461.8 MB, free: 23.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.298, allocations: 14.25 kB / 461.8 MB, free: 23.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.298, allocations: 16.34 kB / 461.8 MB, free: 23.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.298, allocations: 4.5 kB / 461.8 MB, free: 23.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006859/0.2987, allocations: 0.539 MB / 462.4 MB, free: 22.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.456e-05/0.2988, allocations: 129.2 kB / 462.5 MB, free: 22.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/0.2989, allocations: 15.28 kB / 462.5 MB, free: 22.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000193/0.2991, allocations: 22.34 kB / 462.5 MB, free: 22.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.63e-05/0.2992, allocations: 39.16 kB / 462.6 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/0.2992, allocations: 8.969 kB / 462.6 MB, free: 22.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001502/0.2993, allocations: 185.7 kB / 462.7 MB, free: 22.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2994, allocations: 0 / 462.7 MB, free: 22.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004105/0.2998, allocations: 92.47 kB / 462.8 MB, free: 22.53 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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,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,producing.growing.useA_rate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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 9.782e-05/0.2999, allocations: 121.7 kB / 463 MB, free: 22.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006251/0.3005, allocations: 332.2 kB / 463.3 MB, free: 22.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3005, allocations: 1.25 kB / 463.3 MB, free: 22.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000258/0.3008, allocations: 140.2 kB / 463.4 MB, free: 22.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005696/0.3014, allocations: 94.22 kB / 463.5 MB, free: 22.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.3024, allocations: 0.7377 MB / 464.2 MB, free: 21.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.3026, allocations: 0.7969 MB / 465 MB, free: 21.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001935/0.3028, allocations: 54.62 kB / 465.1 MB, free: 21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.038e-05/0.3029, allocations: 31.55 kB / 465.1 MB, free: 21 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3029, allocations: 0 / 465.1 MB, free: 21 MB / 350.1 MB Notification: Performance of Templates: time 0.008317/0.3113, allocations: 3.728 MB / 468.9 MB, free: 20.72 MB / 350.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.makefile (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)