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.0008596/0.0008596, allocations: 73.97 kB / 20.66 MB, free: 3.844 MB / 18.57 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.0009058/0.0009058, allocations: 169.4 kB / 24.06 MB, free: 456 kB / 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.9289/0.9289, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.1008/0.1008, allocations: 24.13 MB / 285.2 MB, free: 5.094 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 1.994e-06/1.994e-06, allocations: 0 / 362.4 MB, free: 3.574 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.412e-05/1.611e-05, allocations: 6.25 kB / 362.4 MB, free: 3.566 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005625/0.005641, allocations: 6.501 MB / 368.9 MB, free: 13.03 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.006949, allocations: 0.997 MB / 369.9 MB, free: 12.03 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002683/0.007217, allocations: 27.75 kB / 369.9 MB, free: 12 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002236/0.007441, allocations: 115 kB / 370.1 MB, free: 11.89 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000167/0.007608, allocations: 79.19 kB / 370.1 MB, free: 11.81 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004582/0.008066, allocations: 239.3 kB / 370.4 MB, free: 11.58 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004437/0.00851, allocations: 0.5812 MB / 371 MB, free: 11 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002538/0.008764, allocations: 205.8 kB / 371.2 MB, free: 10.8 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002755/0.009039, allocations: 355.2 kB / 371.5 MB, free: 10.45 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.009215, allocations: 163.5 kB / 371.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.064e-05/0.009265, allocations: 52 kB / 371.7 MB, free: 10.24 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.773e-05/0.009343, allocations: 63.97 kB / 371.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.023e-05/0.009433, allocations: 127.6 kB / 371.9 MB, free: 10.05 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.009539, allocations: 171.5 kB / 372.1 MB, free: 9.883 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003258/0.009865, allocations: 374.4 kB / 372.4 MB, free: 9.516 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.009867, allocations: 4 kB / 372.4 MB, free: 9.512 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.009868, allocations: 0 / 372.4 MB, free: 9.512 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.009872, allocations: 4 kB / 372.4 MB, free: 9.508 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.0007264/0.0106, allocations: 0.7956 MB / 373.2 MB, free: 8.676 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.967e-05/0.01063, allocations: 8.75 kB / 373.2 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002102/0.01084, allocations: 120.5 kB / 373.4 MB, free: 8.551 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003633/0.0112, allocations: 369.7 kB / 373.7 MB, free: 8.168 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.697e-05/0.01124, allocations: 45.38 kB / 373.8 MB, free: 8.125 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.387e-05/0.01129, allocations: 60.38 kB / 373.8 MB, free: 8.066 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003966/0.01169, allocations: 462.2 kB / 374.3 MB, free: 7.559 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.0117, allocations: 0 / 374.3 MB, free: 7.559 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.618e-05/0.01173, allocations: 20 kB / 374.3 MB, free: 7.539 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.01174, allocations: 16 kB / 374.3 MB, free: 7.523 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001541/0.0119, allocations: 134.8 kB / 374.4 MB, free: 7.395 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001377/0.01327, allocations: 1.945 MB / 376.4 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.01346, allocations: 212.7 kB / 376.6 MB, free: 5.113 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.482e-05/0.01355, allocations: 98.62 kB / 376.7 MB, free: 5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.284e-05/0.01356, allocations: 8 kB / 376.7 MB, free: 4.992 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.01359, allocations: 45.33 kB / 376.7 MB, free: 4.938 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.463e-06/0.01359, allocations: 0 / 376.7 MB, free: 4.938 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0003125/0.0139, allocations: 210.6 kB / 376.9 MB, free: 4.727 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.846e-05/0.01396, allocations: 166.2 kB / 377.1 MB, free: 4.527 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.01415, allocations: 341.9 kB / 377.4 MB, free: 4.176 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.01417, allocations: 37.7 kB / 377.5 MB, free: 4.133 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.01431, allocations: 327.5 kB / 377.8 MB, free: 3.805 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.643e-05/0.01437, allocations: 99.19 kB / 377.9 MB, free: 3.707 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.01447, allocations: 111.9 kB / 378 MB, free: 3.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.01461, allocations: 0.5195 MB / 378.5 MB, free: 3.059 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.688e-05/0.01469, allocations: 53.64 kB / 378.6 MB, free: 3.004 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001775/0.01486, allocations: 286.5 kB / 378.9 MB, free: 2.641 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.01509, allocations: 307.8 kB / 379.2 MB, free: 2.262 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.01509, allocations: 0 / 379.2 MB, free: 2.262 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00033/0.01542, allocations: 349.5 kB / 379.5 MB, free: 1.914 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.01544, allocations: 8 kB / 379.5 MB, free: 1.906 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.01545, allocations: 4.562 kB / 379.5 MB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.01546, allocations: 12 kB / 379.5 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.0156, allocations: 63.84 kB / 379.6 MB, free: 1.828 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.0156, allocations: 15.92 kB / 379.6 MB, free: 1.812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.854e-05/0.0157, allocations: 43.67 kB / 379.6 MB, free: 1.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.031e-05/0.01572, allocations: 16 kB / 379.7 MB, free: 1.754 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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,inventory.outflow.stopInflow,producing.cloud.massPort.stopInflow,installedBase.inflow.stopOutflow,inventory.inflow.stopInflow,producing.cloud.massPort.stopOutflow,installedBase.inflow.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,cloud1.massPort.stopInflow,cloud1.massPort.stopOutflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0001363/0.01586, allocations: 205.7 kB / 379.9 MB, free: 1.543 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.139e-05/0.01593, allocations: 47.7 kB / 379.9 MB, free: 1.496 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.874e-05/0.01598, allocations: 42.45 kB / 379.9 MB, free: 1.449 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.01598, allocations: 4 kB / 380 MB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.01599, allocations: 7.922 kB / 380 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.01599, allocations: 8 kB / 380 MB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007597/0.01675, allocations: 1.058 MB / 381 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.01676, allocations: 4 kB / 381 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001023/0.01686, allocations: 35.92 kB / 381.1 MB, free: 264 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.01686, allocations: 4 kB / 381.1 MB, free: 260 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.01688, allocations: 8 kB / 381.1 MB, free: 252 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.01688, allocations: 8.25 kB / 381.1 MB, free: 244 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.01688, allocations: 7.938 kB / 381.1 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003077/0.01719, allocations: 446 kB / 381.5 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.532e-05/0.01725, allocations: 47.73 kB / 381.6 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.469e-05/0.01727, allocations: 8 kB / 381.6 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.163e-05/0.01734, allocations: 11.98 kB / 381.6 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.351e-05/0.0174, allocations: 35.89 kB / 381.6 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.01741, allocations: 8 kB / 381.6 MB, free: 15.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.96e-05/0.0175, allocations: 210.9 kB / 381.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0175, allocations: 0 / 381.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002507/0.01775, allocations: 107.6 kB / 381.9 MB, free: 15.32 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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.inflow.stopOutflow,producing.growing.portB.stopOutflow,inventory.outflow.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 (29): * Single equations (assignments): 29 * 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.0001024/0.01785, allocations: 117.2 kB / 382.1 MB, free: 15.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002487/0.0181, allocations: 221.1 kB / 382.3 MB, free: 14.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.0181, allocations: 4.125 kB / 382.3 MB, free: 14.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.805e-05/0.01818, allocations: 79.52 kB / 382.4 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.01851, allocations: 107.8 kB / 382.5 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008031/0.01932, allocations: 0.7539 MB / 383.2 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.43e-05/0.01939, allocations: 117 kB / 383.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.01951, allocations: 51.28 kB / 383.4 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001611/0.01967, allocations: 162.1 kB / 383.5 MB, free: 13.63 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01967, allocations: 0 / 383.5 MB, free: 13.63 MB / 362.7 MB Notification: Performance of Templates: time 0.006447/0.02612, allocations: 4.529 MB / 388.1 MB, free: 9.223 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: 2.9164293128997087]