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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000954/0.000954, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009782/0.0009782, allocations: 165 kB / 23.02 MB, free: 1.555 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.991/0.991, allocations: 177.1 MB / 203.4 MB, free: 5.656 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.162/0.162, allocations: 24.13 MB / 284.1 MB, free: 5.262 MB / 266.7 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.505e-06/2.505e-06, allocations: 0 / 361.2 MB, free: 4.035 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.04e-05/4.29e-05, allocations: 6.031 kB / 361.2 MB, free: 4.031 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006356/0.006399, allocations: 6.575 MB / 367.7 MB, free: 13.43 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.00765, allocations: 0.997 MB / 368.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002695/0.00792, allocations: 27.75 kB / 368.8 MB, free: 12.4 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002566/0.008176, allocations: 114.9 kB / 368.9 MB, free: 12.29 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001658/0.008342, allocations: 79.25 kB / 369 MB, free: 12.21 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004542/0.008796, allocations: 235.3 kB / 369.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004148/0.009211, allocations: 0.5812 MB / 369.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002816/0.009493, allocations: 201.9 kB / 370 MB, free: 11.2 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002625/0.009755, allocations: 347.2 kB / 370.3 MB, free: 10.86 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001933/0.009948, allocations: 179.4 kB / 370.5 MB, free: 10.68 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.677e-05/0.01001, allocations: 56 kB / 370.5 MB, free: 10.63 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.464e-05/0.01009, allocations: 67.98 kB / 370.6 MB, free: 10.56 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.464e-05/0.01018, allocations: 131.6 kB / 370.7 MB, free: 10.43 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.0103, allocations: 175.5 kB / 370.9 MB, free: 10.26 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003615/0.01066, allocations: 390.4 kB / 371.3 MB, free: 9.879 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.01066, allocations: 0 / 371.3 MB, free: 9.879 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.01066, allocations: 0 / 371.3 MB, free: 9.879 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.01067, allocations: 0 / 371.3 MB, free: 9.879 MB / 346.7 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.0008182/0.01149, allocations: 0.7997 MB / 372.1 MB, free: 9.043 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.01153, allocations: 12.75 kB / 372.1 MB, free: 9.031 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002249/0.01175, allocations: 120.5 kB / 372.2 MB, free: 8.914 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004299/0.01218, allocations: 360 kB / 372.6 MB, free: 8.539 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.381e-05/0.01222, allocations: 41.38 kB / 372.6 MB, free: 8.496 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.669e-05/0.01229, allocations: 60.38 kB / 372.7 MB, free: 8.438 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005014/0.01279, allocations: 494.3 kB / 373.1 MB, free: 7.902 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.0128, allocations: 0 / 373.1 MB, free: 7.902 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.946e-05/0.01283, allocations: 20 kB / 373.2 MB, free: 7.883 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.01285, allocations: 15.94 kB / 373.2 MB, free: 7.867 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002615/0.01311, allocations: 173.8 kB / 373.4 MB, free: 7.699 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/0.01452, allocations: 1.93 MB / 375.3 MB, free: 5.695 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003717/0.01489, allocations: 269.1 kB / 375.5 MB, free: 5.383 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.01502, allocations: 115.2 kB / 375.7 MB, free: 5.254 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.01505, allocations: 8.172 kB / 375.7 MB, free: 5.246 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.01507, allocations: 41.62 kB / 375.7 MB, free: 5.195 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 1.342e-06/0.01508, allocations: 0 / 375.7 MB, free: 5.195 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004091/0.01549, allocations: 263.6 kB / 376 MB, free: 4.934 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.01555, allocations: 166.2 kB / 376.1 MB, free: 4.734 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002279/0.01578, allocations: 334.2 kB / 376.5 MB, free: 4.387 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.01581, allocations: 37.7 kB / 376.5 MB, free: 4.344 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/0.01595, allocations: 311.8 kB / 376.8 MB, free: 4.031 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.119e-05/0.01602, allocations: 103.2 kB / 376.9 MB, free: 3.93 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.01612, allocations: 104 kB / 377 MB, free: 3.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.01625, allocations: 0.5157 MB / 377.5 MB, free: 3.293 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.01637, allocations: 69.27 kB / 377.6 MB, free: 3.227 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001913/0.01656, allocations: 256.3 kB / 377.8 MB, free: 2.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002636/0.01683, allocations: 291.5 kB / 378.1 MB, free: 2.57 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.01683, allocations: 4 kB / 378.1 MB, free: 2.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0003866/0.01721, allocations: 365.5 kB / 378.5 MB, free: 2.199 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.01723, allocations: 4 kB / 378.5 MB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.01724, allocations: 4 kB / 378.5 MB, free: 2.191 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.01725, allocations: 8 kB / 378.5 MB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.0174, allocations: 67.83 kB / 378.6 MB, free: 2.117 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.01741, allocations: 7.938 kB / 378.6 MB, free: 2.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.01752, allocations: 59.61 kB / 378.6 MB, free: 2.051 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.245e-05/0.01754, allocations: 27.92 kB / 378.7 MB, free: 2.023 MB / 346.7 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.0001461/0.01769, allocations: 205.7 kB / 378.9 MB, free: 1.812 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.13e-05/0.01776, allocations: 43.81 kB / 378.9 MB, free: 1.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.993e-05/0.01782, allocations: 35.08 kB / 378.9 MB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.01782, allocations: 4 kB / 378.9 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.01783, allocations: 11.92 kB / 378.9 MB, free: 1.723 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.01784, allocations: 0 / 378.9 MB, free: 1.723 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000875/0.01871, allocations: 1.163 MB / 380.1 MB, free: 480 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.01871, allocations: 8.031 kB / 380.1 MB, free: 472 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.01883, allocations: 43.91 kB / 380.2 MB, free: 428 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.01883, allocations: 7.938 kB / 380.2 MB, free: 420 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.35e-05/0.01886, allocations: 12 kB / 380.2 MB, free: 408 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.01886, allocations: 7.984 kB / 380.2 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.01886, allocations: 0 / 380.2 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003969/0.01926, allocations: 485.2 kB / 380.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.079e-05/0.01933, allocations: 55.72 kB / 380.7 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.01936, allocations: 19.98 kB / 380.7 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.498e-05/0.01945, allocations: 8 kB / 380.7 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.936e-05/0.01951, allocations: 43.81 kB / 380.8 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.171e-05/0.01953, allocations: 8 kB / 380.8 MB, free: 15.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001115/0.01964, allocations: 215 kB / 381 MB, free: 15.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01964, allocations: 4 kB / 381 MB, free: 15.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002588/0.0199, allocations: 115.6 kB / 381.1 MB, free: 15.4 MB / 362.7 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 9.077e-05/0.01999, allocations: 117.1 kB / 381.2 MB, free: 15.28 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003138/0.0203, allocations: 243.6 kB / 381.5 MB, free: 15.04 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.0203, allocations: 4 kB / 381.5 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.02041, allocations: 99.64 kB / 381.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000373/0.02079, allocations: 103.5 kB / 381.7 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008557/0.02164, allocations: 0.7681 MB / 382.4 MB, free: 14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.598e-05/0.02172, allocations: 113.3 kB / 382.6 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001159/0.02183, allocations: 59.23 kB / 382.6 MB, free: 13.81 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.437e-05/0.02191, allocations: 32.5 kB / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/0.02191, allocations: 0 / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of Templates: time 0.006347/0.02826, allocations: 4.488 MB / 387.1 MB, free: 9.398 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.makefile [Timeout 660] (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=240 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.2609956776723266]