Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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-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.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001578/0.001578, allocations: 108 kB / 15.6 MB, free: 132 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.001869/0.001869, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.335/1.335, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2926/0.2926, allocations: 31.17 MB / 321.5 MB, free: 4.414 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00222/0.002221, allocations: 59.91 kB / 388.9 MB, free: 2.598 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.325, allocations: 56.36 MB / 445.3 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006817/0.3319, allocations: 6.79 MB / 452.1 MB, free: 29.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.3339, allocations: 1.001 MB / 453.1 MB, free: 28.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003609/0.3342, allocations: 25 kB / 453.1 MB, free: 28.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003051/0.3345, allocations: 107.4 kB / 453.2 MB, free: 28.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002186/0.3348, allocations: 77.08 kB / 453.3 MB, free: 28.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006159/0.3354, allocations: 226.6 kB / 453.5 MB, free: 28.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000473/0.3359, allocations: 0.5639 MB / 454.1 MB, free: 28.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003834/0.3363, allocations: 300.6 kB / 454.4 MB, free: 28.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.3365, allocations: 220.9 kB / 454.6 MB, free: 28.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002125/0.3367, allocations: 244.8 kB / 454.8 MB, free: 27.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.432e-05/0.3368, allocations: 56.44 kB / 454.9 MB, free: 27.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001147/0.3369, allocations: 67.31 kB / 454.9 MB, free: 27.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.337, allocations: 140.2 kB / 455.1 MB, free: 27.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001675/0.3372, allocations: 258.3 kB / 455.3 MB, free: 27.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004257/0.3377, allocations: 0.5479 MB / 455.9 MB, free: 27.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3377, allocations: 0 / 455.9 MB, free: 27.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3377, allocations: 0 / 455.9 MB, free: 27.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.3377, allocations: 0 / 455.9 MB, free: 27.45 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.001083/0.3388, allocations: 0.7957 MB / 456.7 MB, free: 26.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.3388, allocations: 10.94 kB / 456.7 MB, free: 26.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003103/0.3391, allocations: 76.8 kB / 456.8 MB, free: 26.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004378/0.3396, allocations: 385.5 kB / 457.1 MB, free: 26.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.813e-05/0.3396, allocations: 45.19 kB / 457.2 MB, free: 26.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.37e-05/0.3397, allocations: 62 kB / 457.2 MB, free: 26.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007715/0.3405, allocations: 0.4925 MB / 457.7 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.3405, allocations: 0 / 457.7 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.464e-05/0.3406, allocations: 21.59 kB / 457.8 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.973e-05/0.3406, allocations: 12.38 kB / 457.8 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006738/0.3413, allocations: 314.6 kB / 458.1 MB, free: 26.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002129/0.3434, allocations: 1.871 MB / 459.9 MB, free: 24.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006657/0.3441, allocations: 303.5 kB / 460.2 MB, free: 24.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002802/0.3444, allocations: 191.7 kB / 460.4 MB, free: 24.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.3444, allocations: 2.891 kB / 460.4 MB, free: 24.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.3444, allocations: 37.36 kB / 460.5 MB, free: 24.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.064e-06/0.3445, allocations: 0 / 460.5 MB, free: 24.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008639/0.3453, allocations: 388.4 kB / 460.8 MB, free: 24.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.903e-05/0.3454, allocations: 161.1 kB / 461 MB, free: 24.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003254/0.3457, allocations: 313.4 kB / 461.3 MB, free: 23.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.953e-05/0.3458, allocations: 45.73 kB / 461.4 MB, free: 23.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.3459, allocations: 258.2 kB / 461.6 MB, free: 23.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.374e-05/0.346, allocations: 97.72 kB / 461.7 MB, free: 23.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/0.3462, allocations: 106.9 kB / 461.8 MB, free: 23.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.706e-05/0.3463, allocations: 349.3 kB / 462.1 MB, free: 23.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003271/0.3466, allocations: 151.3 kB / 462.3 MB, free: 23.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003622/0.347, allocations: 257.7 kB / 462.5 MB, free: 22.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005869/0.3476, allocations: 362.8 kB / 462.9 MB, free: 22.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.3476, allocations: 1.312 kB / 462.9 MB, free: 22.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008563/0.3485, allocations: 484.1 kB / 463.4 MB, free: 22.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3485, allocations: 11.78 kB / 463.4 MB, free: 22.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3485, allocations: 2.969 kB / 463.4 MB, free: 22.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.3485, allocations: 6.594 kB / 463.4 MB, free: 22.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002742/0.3488, allocations: 67.94 kB / 463.5 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.3488, allocations: 9.688 kB / 463.5 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.3491, allocations: 59.84 kB / 463.5 MB, free: 22.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.344e-05/0.3491, allocations: 23.8 kB / 463.6 MB, free: 22.43 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.0001783/0.3493, allocations: 204.3 kB / 463.8 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.3494, allocations: 36.25 kB / 463.8 MB, free: 22.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.59e-05/0.3495, allocations: 39.66 kB / 463.8 MB, free: 22.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3495, allocations: 4.031 kB / 463.8 MB, free: 22.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.3495, allocations: 1.281 kB / 463.8 MB, free: 22.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3496, allocations: 3.234 kB / 463.8 MB, free: 22.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00144/0.351, allocations: 1.217 MB / 465.1 MB, free: 21.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.351, allocations: 3.938 kB / 465.1 MB, free: 21.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002234/0.3512, allocations: 45.11 kB / 465.1 MB, free: 21.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.3513, allocations: 3.219 kB / 465.1 MB, free: 21.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.604e-05/0.3513, allocations: 14.48 kB / 465.1 MB, free: 21.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.68e-06/0.3513, allocations: 5.672 kB / 465.1 MB, free: 21.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3513, allocations: 6.125 kB / 465.1 MB, free: 21.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008143/0.3521, allocations: 0.5587 MB / 465.7 MB, free: 20.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.3523, allocations: 138.3 kB / 465.8 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.073e-05/0.3523, allocations: 10.56 kB / 465.8 MB, free: 20.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002067/0.3525, allocations: 21.47 kB / 465.9 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.34e-05/0.3526, allocations: 36.38 kB / 465.9 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.3527, allocations: 12 kB / 465.9 MB, free: 20.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002165/0.3529, allocations: 215.1 kB / 466.1 MB, free: 20.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3529, allocations: 3.938 kB / 466.1 MB, free: 20.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000464/0.3534, allocations: 111.9 kB / 466.2 MB, free: 20.63 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.0001358/0.3535, allocations: 119.1 kB / 466.3 MB, free: 20.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008137/0.3543, allocations: 369 kB / 466.7 MB, free: 20.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.3543, allocations: 1.281 kB / 466.7 MB, free: 20.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003189/0.3547, allocations: 154.5 kB / 466.9 MB, free: 20.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006375/0.3553, allocations: 112.8 kB / 467 MB, free: 20.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001344/0.3567, allocations: 0.8162 MB / 467.8 MB, free: 19.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.357, allocations: 0.8223 MB / 468.6 MB, free: 19.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002483/0.3572, allocations: 66.5 kB / 468.7 MB, free: 19.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.346e-05/0.3573, allocations: 40.36 kB / 468.7 MB, free: 19.05 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3573, allocations: 0 / 468.7 MB, free: 19.05 MB / 350.1 MB Notification: Performance of Templates: time 0.00938/0.3667, allocations: 4.32 MB / 473 MB, free: 18.73 MB / 350.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.makefile (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)