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.001304/0.001304, allocations: 100.1 kB / 15.88 MB, free: 12 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.001058/0.001058, allocations: 197.9 kB / 16.79 MB, free: 6.809 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.298/1.298, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2544/0.2544, allocations: 31.12 MB / 321.7 MB, free: 4.688 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63.89 kB / 388.9 MB, free: 3.074 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.2272, allocations: 56.35 MB / 445.2 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005855/0.2331, allocations: 7.323 MB / 452.6 MB, free: 29.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.2345, allocations: 1.074 MB / 453.6 MB, free: 28.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002891/0.2348, allocations: 26.25 kB / 453.7 MB, free: 28.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000231/0.2351, allocations: 86.45 kB / 453.7 MB, free: 28.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001595/0.2353, allocations: 51.45 kB / 453.8 MB, free: 28.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004478/0.2357, allocations: 196.9 kB / 454 MB, free: 28.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003517/0.2361, allocations: 0.5391 MB / 454.5 MB, free: 27.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003026/0.2364, allocations: 286.5 kB / 454.8 MB, free: 27.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.2366, allocations: 195.7 kB / 455 MB, free: 27.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.2368, allocations: 223.3 kB / 455.2 MB, free: 27.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.468e-05/0.2368, allocations: 37.34 kB / 455.2 MB, free: 27.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.477e-05/0.2369, allocations: 42.56 kB / 455.3 MB, free: 27.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.233e-05/0.237, allocations: 116.2 kB / 455.4 MB, free: 27.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.2372, allocations: 236.3 kB / 455.6 MB, free: 27.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002653/0.2374, allocations: 422.7 kB / 456 MB, free: 27.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2374, allocations: 8 kB / 456.1 MB, free: 27.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.2375, allocations: 0 / 456.1 MB, free: 27.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.832e-06/0.2375, allocations: 0 / 456.1 MB, free: 27.2 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.00101/0.2385, allocations: 0.7885 MB / 456.8 MB, free: 26.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.2385, allocations: 9.438 kB / 456.8 MB, free: 26.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003001/0.2388, allocations: 78.38 kB / 456.9 MB, free: 26.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004138/0.2392, allocations: 387.6 kB / 457.3 MB, free: 26.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.2393, allocations: 45.31 kB / 457.3 MB, free: 26.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.798e-05/0.2394, allocations: 66.88 kB / 457.4 MB, free: 26.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007521/0.2401, allocations: 0.4936 MB / 457.9 MB, free: 25.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.2401, allocations: 0 / 457.9 MB, free: 25.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.739e-05/0.2402, allocations: 21.59 kB / 457.9 MB, free: 25.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.2402, allocations: 12.75 kB / 457.9 MB, free: 25.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006002/0.2408, allocations: 314.1 kB / 458.2 MB, free: 25.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001947/0.2428, allocations: 1.869 MB / 460.1 MB, free: 24.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005966/0.2434, allocations: 302.1 kB / 460.4 MB, free: 24.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002719/0.2437, allocations: 181.2 kB / 460.6 MB, free: 24.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.2437, allocations: 5.484 kB / 460.6 MB, free: 24.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.2437, allocations: 45.77 kB / 460.6 MB, free: 24.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.513e-06/0.2437, allocations: 0 / 460.6 MB, free: 24.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008356/0.2446, allocations: 378 kB / 461 MB, free: 24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.2446, allocations: 159.2 kB / 461.2 MB, free: 23.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000301/0.2449, allocations: 323.2 kB / 461.5 MB, free: 23.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.245, allocations: 40.11 kB / 461.5 MB, free: 23.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.2451, allocations: 260.4 kB / 461.8 MB, free: 23.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.826e-05/0.2451, allocations: 100.7 kB / 461.9 MB, free: 23.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.2453, allocations: 101.6 kB / 462 MB, free: 23.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.408e-05/0.2454, allocations: 357.7 kB / 462.3 MB, free: 22.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003249/0.2457, allocations: 139.7 kB / 462.5 MB, free: 22.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003539/0.2461, allocations: 258.5 kB / 462.7 MB, free: 22.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005887/0.2467, allocations: 368.2 kB / 463.1 MB, free: 22.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2467, allocations: 1.031 kB / 463.1 MB, free: 22.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008328/0.2475, allocations: 480.7 kB / 463.5 MB, free: 22.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.2476, allocations: 10.88 kB / 463.5 MB, free: 22.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.2476, allocations: 2.281 kB / 463.6 MB, free: 22.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.2476, allocations: 9.625 kB / 463.6 MB, free: 22.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002686/0.2479, allocations: 71.77 kB / 463.6 MB, free: 22.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.2479, allocations: 9.5 kB / 463.6 MB, free: 22.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002497/0.2481, allocations: 64.77 kB / 463.7 MB, free: 22.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.394e-05/0.2482, allocations: 23.69 kB / 463.7 MB, free: 22.18 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.0001569/0.2483, allocations: 187.9 kB / 463.9 MB, free: 22.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.2485, allocations: 36.88 kB / 463.9 MB, free: 22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.298e-05/0.2486, allocations: 45.02 kB / 464 MB, free: 21.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.2486, allocations: 4.438 kB / 464 MB, free: 21.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.2486, allocations: 4.938 kB / 464 MB, free: 21.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.2486, allocations: 2.25 kB / 464 MB, free: 21.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001368/0.25, allocations: 1.216 MB / 465.2 MB, free: 21.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.25, allocations: 2.375 kB / 465.2 MB, free: 21.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002228/0.2502, allocations: 46.34 kB / 465.3 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.2502, allocations: 4.438 kB / 465.3 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.2503, allocations: 18.45 kB / 465.3 MB, free: 21.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.2503, allocations: 8.25 kB / 465.3 MB, free: 21.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.335e-05/0.2503, allocations: 1.781 kB / 465.3 MB, free: 21.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007859/0.2511, allocations: 0.5656 MB / 465.9 MB, free: 20.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.947e-05/0.2512, allocations: 136.8 kB / 466 MB, free: 20.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.854e-05/0.2512, allocations: 9.875 kB / 466 MB, free: 20.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002149/0.2515, allocations: 22.36 kB / 466 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.2516, allocations: 28.48 kB / 466.1 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.2516, allocations: 12.27 kB / 466.1 MB, free: 20.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001948/0.2518, allocations: 210.7 kB / 466.3 MB, free: 20.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2518, allocations: 0 / 466.3 MB, free: 20.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004029/0.2522, allocations: 115.2 kB / 466.4 MB, free: 20.39 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 0.0001232/0.2524, allocations: 122.4 kB / 466.5 MB, free: 20.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000672/0.253, allocations: 341.9 kB / 466.8 MB, free: 20.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2531, allocations: 0.8125 kB / 466.8 MB, free: 20.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003093/0.2534, allocations: 153.7 kB / 467 MB, free: 20.13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006351/0.254, allocations: 99.19 kB / 467.1 MB, free: 20.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.2552, allocations: 1.044 MB / 468.1 MB, free: 19.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002466/0.2555, allocations: 0.8261 MB / 469 MB, free: 18.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.2556, allocations: 38.98 kB / 469 MB, free: 18.62 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2556, allocations: 0 / 469 MB, free: 18.62 MB / 350.1 MB Notification: Performance of Templates: time 0.007666/0.2633, allocations: 5.2 MB / 474.2 MB, free: 18.02 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)