Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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-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.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 92.39 kB / 16.02 MB, free: 80 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.001115/0.001115, allocations: 178 kB / 16.92 MB, free: 6.652 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.312/1.312, allocations: 223.3 MB / 241 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3757/0.3757, allocations: 31.21 MB / 323.3 MB, free: 4.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004044/0.0004044, allocations: 12 kB / 391.4 MB, free: 2.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2739, allocations: 57.38 MB / 448.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004427/0.2783, allocations: 5.298 MB / 454.1 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.2796, allocations: 0.6675 MB / 454.8 MB, free: 29.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002245/0.2799, allocations: 22.56 kB / 454.8 MB, free: 29.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00019/0.2801, allocations: 57.5 kB / 454.9 MB, free: 29.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.2802, allocations: 50.52 kB / 454.9 MB, free: 29.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004201/0.2806, allocations: 161.6 kB / 455.1 MB, free: 29.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003364/0.281, allocations: 439.1 kB / 455.5 MB, free: 29.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002684/0.2813, allocations: 198.8 kB / 455.7 MB, free: 29.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.2814, allocations: 144.7 kB / 455.8 MB, free: 29.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001731/0.2816, allocations: 160.8 kB / 456 MB, free: 29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.733e-05/0.2817, allocations: 22.09 kB / 456 MB, free: 28.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.343e-05/0.2817, allocations: 26.66 kB / 456 MB, free: 28.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.502e-05/0.2818, allocations: 73.47 kB / 456.1 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.282, allocations: 208.3 kB / 456.3 MB, free: 28.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002635/0.2822, allocations: 322 kB / 456.6 MB, free: 28.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.2822, allocations: 2.625 kB / 456.6 MB, free: 28.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2822, allocations: 0 / 456.6 MB, free: 28.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.2823, allocations: 0 / 456.6 MB, free: 28.72 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.0008839/0.2831, allocations: 0.614 MB / 457.3 MB, free: 28.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.2832, allocations: 10.5 kB / 457.3 MB, free: 28.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002819/0.2835, allocations: 62.56 kB / 457.3 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003043/0.2838, allocations: 317.3 kB / 457.6 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.134e-05/0.2838, allocations: 35.75 kB / 457.7 MB, free: 27.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.946e-05/0.2839, allocations: 55.38 kB / 457.7 MB, free: 27.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005921/0.2845, allocations: 427 kB / 458.1 MB, free: 27.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.2845, allocations: 0 / 458.1 MB, free: 27.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.4e-05/0.2846, allocations: 18.66 kB / 458.2 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.2846, allocations: 11.72 kB / 458.2 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004779/0.2851, allocations: 259.3 kB / 458.4 MB, free: 27.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.2866, allocations: 1.675 MB / 460.1 MB, free: 26.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000501/0.2872, allocations: 259.7 kB / 460.4 MB, free: 26.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002466/0.2874, allocations: 166 kB / 460.5 MB, free: 26.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.2874, allocations: 2.531 kB / 460.5 MB, free: 26.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.2875, allocations: 42.62 kB / 460.6 MB, free: 26.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.713e-06/0.2875, allocations: 3.938 kB / 460.6 MB, free: 26.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007658/0.2883, allocations: 358.7 kB / 460.9 MB, free: 25.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/0.2883, allocations: 165.9 kB / 461.1 MB, free: 25.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.2886, allocations: 275 kB / 461.3 MB, free: 25.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.2886, allocations: 42.67 kB / 461.4 MB, free: 25.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.2887, allocations: 209.6 kB / 461.6 MB, free: 25.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.938e-05/0.2888, allocations: 87.7 kB / 461.7 MB, free: 25.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.618e-05/0.2889, allocations: 57.95 kB / 461.7 MB, free: 25.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.558e-05/0.289, allocations: 347.7 kB / 462.1 MB, free: 24.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002968/0.2893, allocations: 141.4 kB / 462.2 MB, free: 24.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003344/0.2896, allocations: 249.2 kB / 462.5 MB, free: 24.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005285/0.2902, allocations: 356.4 kB / 462.8 MB, free: 24.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2902, allocations: 1.156 kB / 462.8 MB, free: 24.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007977/0.291, allocations: 462.9 kB / 463.3 MB, free: 24.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.291, allocations: 10.42 kB / 463.3 MB, free: 24.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.291, allocations: 2.219 kB / 463.3 MB, free: 24.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.2911, allocations: 6.781 kB / 463.3 MB, free: 24.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002452/0.2913, allocations: 70.92 kB / 463.3 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.2913, allocations: 9.875 kB / 463.3 MB, free: 24.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/0.2916, allocations: 54.42 kB / 463.4 MB, free: 24.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.384e-05/0.2916, allocations: 19.69 kB / 463.4 MB, free: 24.16 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.0001691/0.2918, allocations: 190.9 kB / 463.6 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.796e-05/0.2919, allocations: 30.09 kB / 463.6 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.032e-05/0.292, allocations: 35.41 kB / 463.7 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.292, allocations: 8.219 kB / 463.7 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.292, allocations: 1.719 kB / 463.7 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.292, allocations: 2.156 kB / 463.7 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001415/0.2934, allocations: 1.19 MB / 464.9 MB, free: 23.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.2935, allocations: 3.312 kB / 464.9 MB, free: 23.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001911/0.2937, allocations: 46.83 kB / 464.9 MB, free: 23.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.815e-06/0.2937, allocations: 5.062 kB / 464.9 MB, free: 23.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.685e-05/0.2937, allocations: 17.05 kB / 464.9 MB, free: 23.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.2937, allocations: 16.31 kB / 465 MB, free: 23.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.2937, allocations: 4.156 kB / 465 MB, free: 23.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007186/0.2944, allocations: 0.5478 MB / 465.5 MB, free: 22.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.581e-05/0.2946, allocations: 137.3 kB / 465.6 MB, free: 22.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.179e-05/0.2946, allocations: 18.22 kB / 465.7 MB, free: 22.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.2948, allocations: 24.06 kB / 465.7 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.681e-05/0.2949, allocations: 32.23 kB / 465.7 MB, free: 22.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.2949, allocations: 8.625 kB / 465.7 MB, free: 22.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000165/0.2951, allocations: 188.6 kB / 465.9 MB, free: 22.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2951, allocations: 0 / 465.9 MB, free: 22.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004227/0.2955, allocations: 92.09 kB / 466 MB, free: 22.36 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 0.0001166/0.2957, allocations: 115.2 kB / 466.1 MB, free: 22.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006466/0.2963, allocations: 334.1 kB / 466.4 MB, free: 22.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2963, allocations: 1.438 kB / 466.4 MB, free: 22.15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002639/0.2966, allocations: 143.1 kB / 466.6 MB, free: 22.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006661/0.2973, allocations: 93.97 kB / 466.7 MB, free: 22.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.2984, allocations: 0.9151 MB / 467.6 MB, free: 21.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.2986, allocations: 0.8027 MB / 468.4 MB, free: 20.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.2988, allocations: 33.59 kB / 468.4 MB, free: 20.68 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2988, allocations: 0 / 468.4 MB, free: 20.68 MB / 350.1 MB Notification: Performance of Templates: time 0.007804/0.3066, allocations: 4.222 MB / 472.6 MB, free: 20.27 MB / 350.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.makefile (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)