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.001423/0.001423, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001349/0.001349, allocations: 191 kB / 16.25 MB, free: 6.637 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.363/1.363, allocations: 222.9 MB / 239.9 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2892/0.2892, allocations: 31.12 MB / 321.2 MB, free: 4.422 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001938, allocations: 67.89 kB / 388.4 MB, free: 2.812 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2905, allocations: 56.35 MB / 444.7 MB, free: 34.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005231/0.2958, allocations: 5.741 MB / 450.5 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.297, allocations: 0.6547 MB / 451.1 MB, free: 29.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002197/0.2973, allocations: 14.44 kB / 451.2 MB, free: 29.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002393/0.2975, allocations: 66.88 kB / 451.2 MB, free: 29.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001725/0.2977, allocations: 49.45 kB / 451.3 MB, free: 29.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004746/0.2982, allocations: 165.1 kB / 451.4 MB, free: 29.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003769/0.2986, allocations: 463.6 kB / 451.9 MB, free: 29.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002976/0.2989, allocations: 208.9 kB / 452.1 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001907/0.2991, allocations: 195.3 kB / 452.3 MB, free: 29.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001968/0.2993, allocations: 198.2 kB / 452.5 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.847e-05/0.2994, allocations: 44.62 kB / 452.5 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.875e-05/0.2995, allocations: 49.88 kB / 452.6 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.717e-05/0.2996, allocations: 108.7 kB / 452.7 MB, free: 29.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001506/0.2997, allocations: 212.2 kB / 452.9 MB, free: 28.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00037/0.3001, allocations: 444.5 kB / 453.3 MB, free: 28.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3001, allocations: 0 / 453.3 MB, free: 28.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3001, allocations: 0 / 453.3 MB, free: 28.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.906e-06/0.3001, allocations: 0 / 453.3 MB, free: 28.71 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.001101/0.3012, allocations: 0.6982 MB / 454 MB, free: 28.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.3013, allocations: 8.969 kB / 454 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003253/0.3016, allocations: 70.14 kB / 454.1 MB, free: 28.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.302, allocations: 314.8 kB / 454.4 MB, free: 27.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.736e-05/0.302, allocations: 40.3 kB / 454.4 MB, free: 27.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.683e-05/0.3021, allocations: 52.41 kB / 454.5 MB, free: 27.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006766/0.3028, allocations: 413.1 kB / 454.9 MB, free: 27.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.3028, allocations: 11.92 kB / 454.9 MB, free: 27.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.618e-05/0.3029, allocations: 17.5 kB / 454.9 MB, free: 27.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.3029, allocations: 9.531 kB / 454.9 MB, free: 27.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005034/0.3034, allocations: 250.4 kB / 455.2 MB, free: 27.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001748/0.3051, allocations: 1.659 MB / 456.8 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000494/0.3056, allocations: 249.6 kB / 457.1 MB, free: 26.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002365/0.3059, allocations: 164.4 kB / 457.2 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.3059, allocations: 7.625 kB / 457.2 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/0.3059, allocations: 37.8 kB / 457.3 MB, free: 25.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.613e-06/0.3059, allocations: 0 / 457.3 MB, free: 25.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007356/0.3067, allocations: 345.6 kB / 457.6 MB, free: 25.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.3067, allocations: 163.1 kB / 457.8 MB, free: 25.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002415/0.307, allocations: 268.5 kB / 458 MB, free: 25.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.307, allocations: 43.61 kB / 458.1 MB, free: 25.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.979e-05/0.3071, allocations: 209.6 kB / 458.3 MB, free: 25.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.611e-05/0.3072, allocations: 90.45 kB / 458.4 MB, free: 25.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.3074, allocations: 105.9 kB / 458.5 MB, free: 25.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.935e-05/0.3074, allocations: 340 kB / 458.8 MB, free: 24.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002886/0.3077, allocations: 138.4 kB / 458.9 MB, free: 24.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000326/0.308, allocations: 252.3 kB / 459.2 MB, free: 24.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004976/0.3086, allocations: 348 kB / 459.5 MB, free: 24.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.3086, allocations: 1.281 kB / 459.5 MB, free: 24.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007464/0.3093, allocations: 451.8 kB / 460 MB, free: 24.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.3093, allocations: 6.438 kB / 460 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.3094, allocations: 2.812 kB / 460 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.3094, allocations: 7.859 kB / 460 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002624/0.3096, allocations: 62.19 kB / 460 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/0.3097, allocations: 10.23 kB / 460.1 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.3099, allocations: 56.38 kB / 460.1 MB, free: 24.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.307e-05/0.31, allocations: 18.73 kB / 460.1 MB, free: 24.09 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.3101, allocations: 187.4 kB / 460.3 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.3103, allocations: 33.52 kB / 460.3 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.22e-05/0.3103, allocations: 36.33 kB / 460.4 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3103, allocations: 8.5 kB / 460.4 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.3103, allocations: 2.094 kB / 460.4 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.3104, allocations: 5.109 kB / 460.4 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001523/0.3119, allocations: 1.18 MB / 461.6 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.758e-06/0.3119, allocations: 3.406 kB / 461.6 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002039/0.3121, allocations: 36.55 kB / 461.6 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.613e-06/0.3121, allocations: 5.781 kB / 461.6 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.684e-05/0.3122, allocations: 16.97 kB / 461.6 MB, free: 22.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.794e-06/0.3122, allocations: 12.69 kB / 461.7 MB, free: 22.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3122, allocations: 3.062 kB / 461.7 MB, free: 22.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000755/0.3129, allocations: 0.5342 MB / 462.2 MB, free: 22.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.3131, allocations: 128.6 kB / 462.3 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.876e-05/0.3131, allocations: 15.22 kB / 462.3 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/0.3133, allocations: 22.19 kB / 462.3 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.551e-05/0.3134, allocations: 38.45 kB / 462.4 MB, free: 22.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.3135, allocations: 8.938 kB / 462.4 MB, free: 22.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001948/0.3137, allocations: 183.6 kB / 462.6 MB, free: 22.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3137, allocations: 3.938 kB / 462.6 MB, free: 22.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004658/0.3141, allocations: 91.38 kB / 462.7 MB, free: 22.29 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.0001321/0.3143, allocations: 122.8 kB / 462.8 MB, free: 22.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007249/0.315, allocations: 341 kB / 463.1 MB, free: 22.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.315, allocations: 0 / 463.1 MB, free: 22.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003204/0.3153, allocations: 141.3 kB / 463.3 MB, free: 22.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006093/0.316, allocations: 91.8 kB / 463.3 MB, free: 22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001175/0.3172, allocations: 0.873 MB / 464.2 MB, free: 21.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002475/0.3174, allocations: 0.7965 MB / 465 MB, free: 20.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002069/0.3176, allocations: 56.16 kB / 465.1 MB, free: 20.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.07e-05/0.3177, allocations: 31.17 kB / 465.1 MB, free: 20.61 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3177, allocations: 0 / 465.1 MB, free: 20.61 MB / 350.1 MB Notification: Performance of Templates: time 0.008188/0.3259, allocations: 3.631 MB / 468.7 MB, free: 20.35 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)