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.005528/0.005528, allocations: 101.6 kB / 15.88 MB, free: 6.328 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.001668/0.001668, allocations: 193.5 kB / 16.79 MB, free: 6.254 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.346/1.346, allocations: 222.9 MB / 240.5 MB, free: 4.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3163/0.3163, allocations: 31.16 MB / 321.8 MB, free: 4.586 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 63.89 kB / 388.9 MB, free: 3.039 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2202, allocations: 56.36 MB / 445.3 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.00477/0.225, allocations: 5.727 MB / 451 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.226, allocations: 0.6637 MB / 451.7 MB, free: 29.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001908/0.2262, allocations: 11.59 kB / 451.7 MB, free: 29.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001982/0.2264, allocations: 63.72 kB / 451.7 MB, free: 29.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001403/0.2266, allocations: 53.91 kB / 451.8 MB, free: 29.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004053/0.227, allocations: 158.6 kB / 451.9 MB, free: 29.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000293/0.2273, allocations: 447.6 kB / 452.4 MB, free: 29.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000233/0.2275, allocations: 187.7 kB / 452.6 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.2277, allocations: 175.5 kB / 452.7 MB, free: 29.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001644/0.2279, allocations: 191.2 kB / 452.9 MB, free: 29.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.793e-05/0.228, allocations: 28.25 kB / 452.9 MB, free: 29.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.875e-05/0.228, allocations: 40.94 kB / 453 MB, free: 29.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.942e-05/0.2281, allocations: 88.88 kB / 453.1 MB, free: 29.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.2282, allocations: 194.2 kB / 453.3 MB, free: 28.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002317/0.2285, allocations: 338.8 kB / 453.6 MB, free: 28.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2285, allocations: 0 / 453.6 MB, free: 28.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.2285, allocations: 0 / 453.6 MB, free: 28.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.2285, allocations: 0 / 453.6 MB, free: 28.84 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.0009181/0.2294, allocations: 0.6923 MB / 454.3 MB, free: 28.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.806e-05/0.2295, allocations: 7.875 kB / 454.3 MB, free: 28.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003237/0.2298, allocations: 68.3 kB / 454.4 MB, free: 28.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002835/0.2301, allocations: 320.1 kB / 454.7 MB, free: 28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.954e-05/0.2301, allocations: 34.78 kB / 454.7 MB, free: 27.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.374e-05/0.2302, allocations: 46.97 kB / 454.8 MB, free: 27.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006132/0.2308, allocations: 421.9 kB / 455.2 MB, free: 27.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.2308, allocations: 2.875 kB / 455.2 MB, free: 27.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.951e-05/0.2309, allocations: 14.72 kB / 455.2 MB, free: 27.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.2309, allocations: 14.97 kB / 455.2 MB, free: 27.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005027/0.2314, allocations: 248.3 kB / 455.4 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.233, allocations: 1.673 MB / 457.1 MB, free: 26.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004901/0.2335, allocations: 251.1 kB / 457.4 MB, free: 26.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002384/0.2337, allocations: 156.6 kB / 457.5 MB, free: 26.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.2337, allocations: 7.562 kB / 457.5 MB, free: 26.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.846e-05/0.2338, allocations: 44.28 kB / 457.6 MB, free: 26.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.593e-06/0.2338, allocations: 1.594 kB / 457.6 MB, free: 26.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007345/0.2345, allocations: 339.8 kB / 457.9 MB, free: 25.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.2345, allocations: 166.8 kB / 458.1 MB, free: 25.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.2348, allocations: 269.8 kB / 458.3 MB, free: 25.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/0.2348, allocations: 43.3 kB / 458.4 MB, free: 25.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.891e-05/0.2349, allocations: 214.8 kB / 458.6 MB, free: 25.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.751e-05/0.235, allocations: 84.52 kB / 458.7 MB, free: 25.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/0.2351, allocations: 103.2 kB / 458.8 MB, free: 25.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.97e-05/0.2352, allocations: 339.7 kB / 459.1 MB, free: 24.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000284/0.2355, allocations: 134.6 kB / 459.2 MB, free: 24.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000322/0.2358, allocations: 249.4 kB / 459.5 MB, free: 24.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005121/0.2363, allocations: 346 kB / 459.8 MB, free: 24.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.2363, allocations: 1.375 kB / 459.8 MB, free: 24.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007702/0.2371, allocations: 450.9 kB / 460.2 MB, free: 24.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.2371, allocations: 7.5 kB / 460.3 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2371, allocations: 2.938 kB / 460.3 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.2372, allocations: 5.891 kB / 460.3 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002451/0.2374, allocations: 73.03 kB / 460.3 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.2374, allocations: 6.719 kB / 460.3 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002585/0.2377, allocations: 54.88 kB / 460.4 MB, free: 24.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.158e-05/0.2377, allocations: 19.84 kB / 460.4 MB, free: 24.22 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.0001369/0.2379, allocations: 186.6 kB / 460.6 MB, free: 24.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.66e-05/0.238, allocations: 29.94 kB / 460.6 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.845e-05/0.238, allocations: 37.55 kB / 460.7 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.2381, allocations: 11.62 kB / 460.7 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.2381, allocations: 0.5156 kB / 460.7 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.2381, allocations: 2.828 kB / 460.7 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/0.2394, allocations: 1.182 MB / 461.9 MB, free: 23.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.2394, allocations: 12.16 kB / 461.9 MB, free: 23.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001967/0.2396, allocations: 38.11 kB / 461.9 MB, free: 23.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.2396, allocations: 4.719 kB / 461.9 MB, free: 23.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.492e-05/0.2397, allocations: 10.66 kB / 461.9 MB, free: 23.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.2397, allocations: 10.5 kB / 461.9 MB, free: 23.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.2397, allocations: 7.062 kB / 461.9 MB, free: 23.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000716/0.2404, allocations: 0.5376 MB / 462.5 MB, free: 22.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.065e-05/0.2405, allocations: 129.3 kB / 462.6 MB, free: 22.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.458e-05/0.2406, allocations: 17.94 kB / 462.6 MB, free: 22.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.2408, allocations: 21.31 kB / 462.6 MB, free: 22.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.394e-05/0.2409, allocations: 36.78 kB / 462.7 MB, free: 22.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/0.2409, allocations: 11.89 kB / 462.7 MB, free: 22.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001491/0.241, allocations: 181.4 kB / 462.9 MB, free: 22.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.241, allocations: 0 / 462.9 MB, free: 22.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004276/0.2415, allocations: 91.5 kB / 463 MB, free: 22.42 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 8.277e-05/0.2416, allocations: 125.6 kB / 463.1 MB, free: 22.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006193/0.2422, allocations: 310.4 kB / 463.4 MB, free: 22.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.2422, allocations: 5.25 kB / 463.4 MB, free: 22.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002466/0.2425, allocations: 136.4 kB / 463.5 MB, free: 22.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005859/0.2431, allocations: 79.34 kB / 463.6 MB, free: 22.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.2441, allocations: 0.9096 MB / 464.5 MB, free: 21.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001928/0.2443, allocations: 0.7967 MB / 465.3 MB, free: 20.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.864e-05/0.2444, allocations: 32.44 kB / 465.3 MB, free: 20.74 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2444, allocations: 3.938 kB / 465.3 MB, free: 20.73 MB / 350.1 MB Notification: Performance of Templates: time 0.006568/0.251, allocations: 4.277 MB / 469.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)