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.001842/0.001842, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002247/0.002248, allocations: 198.7 kB / 16.14 MB, free: 6.648 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.381/1.381, allocations: 222.9 MB / 239.8 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.33/0.33, allocations: 31.17 MB / 321.1 MB, free: 4.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 67.89 kB / 388.3 MB, free: 3.082 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.3001, allocations: 56.36 MB / 444.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006737/0.3069, allocations: 7.322 MB / 451.9 MB, free: 29.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.309, allocations: 1.076 MB / 453 MB, free: 28.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006898/0.3097, allocations: 27.56 kB / 453 MB, free: 28.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003385/0.31, allocations: 81.86 kB / 453.1 MB, free: 28.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002219/0.3103, allocations: 54.59 kB / 453.2 MB, free: 28.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005381/0.3108, allocations: 194.6 kB / 453.4 MB, free: 28.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003934/0.3112, allocations: 0.5344 MB / 453.9 MB, free: 28.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003189/0.3116, allocations: 285.3 kB / 454.2 MB, free: 27.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.3117, allocations: 205.9 kB / 454.4 MB, free: 27.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001731/0.3119, allocations: 223.1 kB / 454.6 MB, free: 27.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.354e-05/0.312, allocations: 33.56 kB / 454.6 MB, free: 27.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.957e-05/0.3121, allocations: 46.78 kB / 454.7 MB, free: 27.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.294e-05/0.3122, allocations: 110 kB / 454.8 MB, free: 27.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.3123, allocations: 238.8 kB / 455 MB, free: 27.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000343/0.3127, allocations: 0.5314 MB / 455.5 MB, free: 27.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.3127, allocations: 0 / 455.5 MB, free: 27.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3127, allocations: 0 / 455.5 MB, free: 27.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.3127, allocations: 3.938 kB / 455.6 MB, free: 27.17 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.001038/0.3137, allocations: 0.7904 MB / 456.3 MB, free: 26.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.3138, allocations: 8.812 kB / 456.4 MB, free: 26.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003154/0.3141, allocations: 76.48 kB / 456.4 MB, free: 26.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003858/0.3145, allocations: 387.6 kB / 456.8 MB, free: 26.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.72e-05/0.3145, allocations: 47 kB / 456.9 MB, free: 26.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.696e-05/0.3146, allocations: 61.28 kB / 456.9 MB, free: 26.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007092/0.3153, allocations: 0.493 MB / 457.4 MB, free: 25.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.3154, allocations: 1.25 kB / 457.4 MB, free: 25.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.803e-05/0.3154, allocations: 33.45 kB / 457.4 MB, free: 25.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.3154, allocations: 12.75 kB / 457.5 MB, free: 25.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006064/0.316, allocations: 303.4 kB / 457.7 MB, free: 25.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001938/0.318, allocations: 1.871 MB / 459.6 MB, free: 24.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005904/0.3186, allocations: 303.9 kB / 459.9 MB, free: 24.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002781/0.3189, allocations: 178.8 kB / 460.1 MB, free: 24.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.3189, allocations: 3.859 kB / 460.1 MB, free: 24.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.3189, allocations: 45.61 kB / 460.1 MB, free: 24.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.733e-06/0.3189, allocations: 0 / 460.1 MB, free: 24.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008327/0.3198, allocations: 383.6 kB / 460.5 MB, free: 23.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.3198, allocations: 163.5 kB / 460.7 MB, free: 23.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003008/0.3201, allocations: 315.3 kB / 461 MB, free: 23.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.733e-05/0.3202, allocations: 44.17 kB / 461 MB, free: 23.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.3203, allocations: 259.7 kB / 461.3 MB, free: 23.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.174e-05/0.3204, allocations: 98.36 kB / 461.4 MB, free: 23.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.3205, allocations: 107.1 kB / 461.5 MB, free: 23.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.859e-05/0.3206, allocations: 349.2 kB / 461.8 MB, free: 22.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003315/0.321, allocations: 145 kB / 462 MB, free: 22.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003686/0.3214, allocations: 254.6 kB / 462.2 MB, free: 22.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005761/0.3219, allocations: 366.4 kB / 462.6 MB, free: 22.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.322, allocations: 1.125 kB / 462.6 MB, free: 22.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000858/0.3228, allocations: 485.8 kB / 463 MB, free: 22.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.3229, allocations: 10.56 kB / 463.1 MB, free: 22.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.3229, allocations: 3.031 kB / 463.1 MB, free: 22.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.3229, allocations: 6.031 kB / 463.1 MB, free: 22.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002833/0.3232, allocations: 70.3 kB / 463.1 MB, free: 22.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.3232, allocations: 5.594 kB / 463.1 MB, free: 22.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002829/0.3235, allocations: 66.02 kB / 463.2 MB, free: 22.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.927e-05/0.3235, allocations: 20.95 kB / 463.2 MB, free: 22.16 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.000195/0.3237, allocations: 197.7 kB / 463.4 MB, free: 21.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.3239, allocations: 36.12 kB / 463.4 MB, free: 21.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.717e-05/0.3239, allocations: 41.31 kB / 463.5 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.3239, allocations: 3.469 kB / 463.5 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.324, allocations: 1.188 kB / 463.5 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.324, allocations: 2.422 kB / 463.5 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001474/0.3254, allocations: 1.225 MB / 464.7 MB, free: 21.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.3255, allocations: 2.828 kB / 464.7 MB, free: 21.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002279/0.3257, allocations: 49.33 kB / 464.8 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.653e-06/0.3257, allocations: 4.25 kB / 464.8 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.3257, allocations: 14.25 kB / 464.8 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.3258, allocations: 3.859 kB / 464.8 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.3258, allocations: 3.969 kB / 464.8 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008307/0.3266, allocations: 0.5598 MB / 465.4 MB, free: 20.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.3267, allocations: 138 kB / 465.5 MB, free: 20.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.016e-05/0.3268, allocations: 11.77 kB / 465.5 MB, free: 20.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/0.327, allocations: 17.59 kB / 465.5 MB, free: 20.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.058e-05/0.3271, allocations: 39.78 kB / 465.6 MB, free: 20.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.3271, allocations: 13.61 kB / 465.6 MB, free: 20.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002118/0.3273, allocations: 210.2 kB / 465.8 MB, free: 20.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3274, allocations: 0 / 465.8 MB, free: 20.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004709/0.3278, allocations: 116.8 kB / 465.9 MB, free: 20.36 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.0001015/0.3279, allocations: 116 kB / 466 MB, free: 20.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007497/0.3287, allocations: 344.1 kB / 466.3 MB, free: 20.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3287, allocations: 1.062 kB / 466.3 MB, free: 20.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003163/0.329, allocations: 153.7 kB / 466.5 MB, free: 20.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006737/0.3297, allocations: 103.5 kB / 466.6 MB, free: 20.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.3312, allocations: 1.013 MB / 467.6 MB, free: 19.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.3315, allocations: 0.8272 MB / 468.4 MB, free: 18.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002826/0.3318, allocations: 66.88 kB / 468.5 MB, free: 18.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.3319, allocations: 34.3 kB / 468.5 MB, free: 18.6 MB / 350.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3319, allocations: 0 / 468.5 MB, free: 18.6 MB / 350.1 MB Notification: Performance of Templates: time 0.01177/0.3437, allocations: 4.008 MB / 472.5 MB, free: 18.29 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)