Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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/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.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 98.72 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.0008403/0.0008404, allocations: 180.3 kB / 16.92 MB, free: 6.918 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.326/1.326, allocations: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2654/0.2654, allocations: 31.15 MB / 323.2 MB, free: 4.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002803/0.0002803, allocations: 8 kB / 391.4 MB, free: 2.004 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.234, allocations: 57.38 MB / 448.8 MB, free: 34.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005286/0.2394, allocations: 6.862 MB / 455.7 MB, free: 29.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001883/0.2413, allocations: 1.073 MB / 456.7 MB, free: 28.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005352/0.2418, allocations: 24.94 kB / 456.7 MB, free: 28.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002457/0.2421, allocations: 83.66 kB / 456.8 MB, free: 28.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002141/0.2423, allocations: 54.77 kB / 456.9 MB, free: 28.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005255/0.2428, allocations: 191.8 kB / 457.1 MB, free: 28.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003704/0.2432, allocations: 0.5379 MB / 457.6 MB, free: 27.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003625/0.2436, allocations: 276.3 kB / 457.9 MB, free: 27.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001409/0.2437, allocations: 164.6 kB / 458 MB, free: 27.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/0.2439, allocations: 189.2 kB / 458.2 MB, free: 27.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.98e-05/0.244, allocations: 21.16 kB / 458.2 MB, free: 27.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.954e-05/0.244, allocations: 24.25 kB / 458.3 MB, free: 27.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.174e-05/0.2441, allocations: 88.64 kB / 458.4 MB, free: 27.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.2442, allocations: 230.4 kB / 458.6 MB, free: 27.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002952/0.2445, allocations: 423.5 kB / 459 MB, free: 27.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.2446, allocations: 0 / 459 MB, free: 27.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2446, allocations: 0 / 459 MB, free: 27.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.2446, allocations: 0 / 459 MB, free: 27.31 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.0009066/0.2455, allocations: 0.6903 MB / 459.7 MB, free: 26.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.835e-05/0.2455, allocations: 8.25 kB / 459.7 MB, free: 26.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002914/0.2458, allocations: 75.3 kB / 459.8 MB, free: 26.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.2462, allocations: 396.7 kB / 460.2 MB, free: 26.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.827e-05/0.2463, allocations: 49.38 kB / 460.2 MB, free: 26.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.449e-05/0.2464, allocations: 66.09 kB / 460.3 MB, free: 26.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007759/0.2471, allocations: 0.4908 MB / 460.8 MB, free: 26.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.2472, allocations: 3.938 kB / 460.8 MB, free: 26.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.692e-05/0.2472, allocations: 21.47 kB / 460.8 MB, free: 26.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.2472, allocations: 12.47 kB / 460.8 MB, free: 26.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000667/0.2479, allocations: 317 kB / 461.1 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0019/0.2498, allocations: 1.884 MB / 463 MB, free: 24.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000564/0.2504, allocations: 313.7 kB / 463.3 MB, free: 24.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000313/0.2507, allocations: 187.1 kB / 463.5 MB, free: 24.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.2507, allocations: 7.906 kB / 463.5 MB, free: 24.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.592e-05/0.2508, allocations: 49.02 kB / 463.5 MB, free: 24.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.453e-06/0.2508, allocations: 0 / 463.5 MB, free: 24.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008628/0.2516, allocations: 396.5 kB / 463.9 MB, free: 24.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.2517, allocations: 158.2 kB / 464.1 MB, free: 23.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002872/0.252, allocations: 317.6 kB / 464.4 MB, free: 23.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.626e-05/0.252, allocations: 42.83 kB / 464.4 MB, free: 23.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.2522, allocations: 257.8 kB / 464.7 MB, free: 23.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.584e-05/0.2522, allocations: 88.92 kB / 464.8 MB, free: 23.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.493e-05/0.2523, allocations: 60 kB / 464.8 MB, free: 23.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.735e-05/0.2524, allocations: 354.1 kB / 465.2 MB, free: 23.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003426/0.2527, allocations: 146.2 kB / 465.3 MB, free: 23.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000389/0.2531, allocations: 269.1 kB / 465.6 MB, free: 22.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005715/0.2537, allocations: 379.6 kB / 465.9 MB, free: 22.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.2537, allocations: 1.938 kB / 465.9 MB, free: 22.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008785/0.2546, allocations: 483.4 kB / 466.4 MB, free: 22.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/0.2546, allocations: 15.81 kB / 466.4 MB, free: 22.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.2547, allocations: 8.562 kB / 466.4 MB, free: 22.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.2547, allocations: 4.938 kB / 466.4 MB, free: 22.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002719/0.255, allocations: 72.34 kB / 466.5 MB, free: 22.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.255, allocations: 10.16 kB / 466.5 MB, free: 22.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002672/0.2553, allocations: 64.17 kB / 466.6 MB, free: 22.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.248e-05/0.2553, allocations: 19.14 kB / 466.6 MB, free: 22.38 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.0001771/0.2555, allocations: 198.4 kB / 466.8 MB, free: 22.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.2556, allocations: 36.77 kB / 466.8 MB, free: 22.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.182e-05/0.2557, allocations: 45.48 kB / 466.9 MB, free: 22.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.2557, allocations: 2.656 kB / 466.9 MB, free: 22.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.2557, allocations: 2 kB / 466.9 MB, free: 22.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.2557, allocations: 3.219 kB / 466.9 MB, free: 22.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00144/0.2572, allocations: 1.23 MB / 468.1 MB, free: 21.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.2572, allocations: 2.062 kB / 468.1 MB, free: 21.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002485/0.2574, allocations: 48.83 kB / 468.2 MB, free: 21.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.2575, allocations: 3.938 kB / 468.2 MB, free: 21.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.447e-05/0.2575, allocations: 14.42 kB / 468.2 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.2575, allocations: 8.562 kB / 468.2 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2575, allocations: 6.578 kB / 468.2 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008207/0.2583, allocations: 0.5814 MB / 468.8 MB, free: 20.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.2584, allocations: 137.7 kB / 468.9 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.582e-05/0.2585, allocations: 11.81 kB / 468.9 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/0.2587, allocations: 20.77 kB / 469 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.744e-05/0.2588, allocations: 32.19 kB / 469 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.2588, allocations: 16.12 kB / 469 MB, free: 20.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002401/0.2591, allocations: 211.1 kB / 469.2 MB, free: 20.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2591, allocations: 0 / 469.2 MB, free: 20.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004027/0.2595, allocations: 115.8 kB / 469.3 MB, free: 20.57 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 8.823e-05/0.2596, allocations: 121.2 kB / 469.4 MB, free: 20.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007098/0.2603, allocations: 353.9 kB / 469.8 MB, free: 20.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2603, allocations: 1.219 kB / 469.8 MB, free: 20.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002887/0.2606, allocations: 159.6 kB / 469.9 MB, free: 20.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007053/0.2613, allocations: 94.83 kB / 470 MB, free: 20.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.2625, allocations: 1.065 MB / 471.1 MB, free: 19.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.2628, allocations: 0.827 MB / 471.9 MB, free: 18.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.2629, allocations: 37.41 kB / 472 MB, free: 18.8 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2629, allocations: 1.156 kB / 472 MB, free: 18.8 MB / 350.1 MB Notification: Performance of Templates: time 0.00762/0.2705, allocations: 5.144 MB / 477.1 MB, free: 17.95 MB / 350.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.makefile (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)