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.0007676/0.0007676, allocations: 98.88 kB / 16.02 MB, free: 76 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.0008394/0.0008393, allocations: 184.4 kB / 16.92 MB, free: 6.684 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.325/1.325, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.3345/0.3345, allocations: 31.15 MB / 323.2 MB, free: 4.836 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002908/0.0002909, allocations: 8 kB / 391.4 MB, free: 2.016 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2322, allocations: 57.38 MB / 448.8 MB, free: 34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.003959/0.2362, allocations: 5.316 MB / 454.1 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009213/0.2372, allocations: 0.6527 MB / 454.7 MB, free: 29.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001817/0.2374, allocations: 14.44 kB / 454.8 MB, free: 29.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001686/0.2375, allocations: 69.41 kB / 454.8 MB, free: 29.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.2377, allocations: 54.73 kB / 454.9 MB, free: 29.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004157/0.2381, allocations: 156.5 kB / 455 MB, free: 29.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003031/0.2384, allocations: 440.6 kB / 455.5 MB, free: 29.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002341/0.2387, allocations: 205.2 kB / 455.7 MB, free: 29.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.2388, allocations: 142.6 kB / 455.8 MB, free: 29.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001475/0.239, allocations: 160.4 kB / 456 MB, free: 29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.531e-05/0.239, allocations: 21 kB / 456 MB, free: 29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.619e-05/0.2391, allocations: 25 kB / 456 MB, free: 29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.63e-05/0.2392, allocations: 78.14 kB / 456.1 MB, free: 28.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.2393, allocations: 195.9 kB / 456.3 MB, free: 28.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002256/0.2395, allocations: 329.2 kB / 456.6 MB, free: 28.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2395, allocations: 4 kB / 456.6 MB, free: 28.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2396, allocations: 0 / 456.6 MB, free: 28.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.2396, allocations: 0 / 456.6 MB, free: 28.73 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.0007933/0.2404, allocations: 0.6136 MB / 457.2 MB, free: 28.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.944e-05/0.2404, allocations: 15.22 kB / 457.2 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002834/0.2407, allocations: 58.5 kB / 457.3 MB, free: 28.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003133/0.241, allocations: 313.9 kB / 457.6 MB, free: 27.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.027e-05/0.2411, allocations: 36.34 kB / 457.6 MB, free: 27.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.725e-05/0.2411, allocations: 55.61 kB / 457.7 MB, free: 27.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006067/0.2417, allocations: 424.2 kB / 458.1 MB, free: 27.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.2418, allocations: 0 / 458.1 MB, free: 27.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.043e-05/0.2418, allocations: 14.59 kB / 458.1 MB, free: 27.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.2418, allocations: 11.06 kB / 458.1 MB, free: 27.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004919/0.2423, allocations: 263.9 kB / 458.4 MB, free: 27.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.2439, allocations: 1.672 MB / 460 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000482/0.2444, allocations: 262.3 kB / 460.3 MB, free: 26.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000247/0.2447, allocations: 167.5 kB / 460.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.462e-05/0.2447, allocations: 5.125 kB / 460.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.617e-05/0.2447, allocations: 44.72 kB / 460.5 MB, free: 26.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.893e-06/0.2447, allocations: 0 / 460.5 MB, free: 26.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007639/0.2455, allocations: 356.2 kB / 460.9 MB, free: 25.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/0.2455, allocations: 165.8 kB / 461 MB, free: 25.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000274/0.2458, allocations: 276.3 kB / 461.3 MB, free: 25.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.2459, allocations: 40.3 kB / 461.3 MB, free: 25.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.006e-05/0.2459, allocations: 209.1 kB / 461.5 MB, free: 25.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.173e-05/0.246, allocations: 88.98 kB / 461.6 MB, free: 25.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.963e-05/0.2461, allocations: 62.98 kB / 461.7 MB, free: 25.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.932e-05/0.2461, allocations: 340.5 kB / 462 MB, free: 24.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002988/0.2464, allocations: 150.1 kB / 462.2 MB, free: 24.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003771/0.2468, allocations: 247.3 kB / 462.4 MB, free: 24.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000508/0.2473, allocations: 359.3 kB / 462.8 MB, free: 24.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2473, allocations: 5.25 kB / 462.8 MB, free: 24.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000768/0.2481, allocations: 455 kB / 463.2 MB, free: 24.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.2481, allocations: 8.984 kB / 463.2 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2482, allocations: 2.906 kB / 463.2 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.2482, allocations: 8.594 kB / 463.2 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.2484, allocations: 68.84 kB / 463.3 MB, free: 24.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.2484, allocations: 12.59 kB / 463.3 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002466/0.2487, allocations: 55.08 kB / 463.4 MB, free: 24.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3e-05/0.2487, allocations: 19.16 kB / 463.4 MB, free: 24.17 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.0001873/0.2489, allocations: 189.9 kB / 463.6 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.98e-05/0.249, allocations: 29.5 kB / 463.6 MB, free: 23.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.125e-05/0.2491, allocations: 32.09 kB / 463.6 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.2491, allocations: 11.28 kB / 463.6 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/0.2491, allocations: 5.25 kB / 463.6 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.2491, allocations: 1 kB / 463.6 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001365/0.2505, allocations: 1.188 MB / 464.8 MB, free: 23.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.2505, allocations: 3.094 kB / 464.8 MB, free: 23.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.2507, allocations: 43.39 kB / 464.9 MB, free: 23.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.2507, allocations: 7.344 kB / 464.9 MB, free: 23.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/0.2508, allocations: 10.25 kB / 464.9 MB, free: 23.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/0.2508, allocations: 12.05 kB / 464.9 MB, free: 23.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.2508, allocations: 12.5 kB / 464.9 MB, free: 23.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007491/0.2515, allocations: 0.5541 MB / 465.5 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.865e-05/0.2516, allocations: 133.7 kB / 465.6 MB, free: 22.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.166e-05/0.2517, allocations: 14.38 kB / 465.6 MB, free: 22.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.2519, allocations: 20.56 kB / 465.6 MB, free: 22.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.252, allocations: 42.42 kB / 465.7 MB, free: 22.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.252, allocations: 13.12 kB / 465.7 MB, free: 22.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001486/0.2522, allocations: 185.2 kB / 465.9 MB, free: 22.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2522, allocations: 1.281 kB / 465.9 MB, free: 22.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003939/0.2526, allocations: 91.38 kB / 466 MB, free: 22.37 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.148e-05/0.2527, allocations: 126.5 kB / 466.1 MB, free: 22.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006431/0.2533, allocations: 321.8 kB / 466.4 MB, free: 22.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2534, allocations: 5.219 kB / 466.4 MB, free: 22.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002632/0.2536, allocations: 141.1 kB / 466.5 MB, free: 22.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006761/0.2543, allocations: 98.38 kB / 466.6 MB, free: 22.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.2553, allocations: 0.9271 MB / 467.6 MB, free: 21.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001992/0.2555, allocations: 0.7946 MB / 468.4 MB, free: 20.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.2556, allocations: 33.62 kB / 468.4 MB, free: 20.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2557, allocations: 0 / 468.4 MB, free: 20.68 MB / 350.1 MB Notification: Performance of Templates: time 0.00688/0.2625, allocations: 4.215 MB / 472.6 MB, free: 20.28 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)