Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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.000831/0.000831, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001798/0.002629, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.001073/0.001073, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001427/0.0025, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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 1.003/1.003, allocations: 177.2 MB / 189.7 MB, free: 5.23 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09501/1.098, allocations: 53.67 MB / 243.4 MB, free: 15.48 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1772/0.1772, allocations: 24.14 MB / 268.3 MB, free: 6.961 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1302/0.3074, allocations: 7.769 MB / 276.1 MB, free: 0.8125 MB / 266.7 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/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_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 277.5 MB, free: 72 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.953e-05/2.11e-05, allocations: 3.297 kB / 277.5 MB, free: 68 kB / 266.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007467/0.007488, allocations: 6.593 MB / 284.1 MB, free: 11.73 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002174/0.009662, allocations: 1.049 MB / 285.1 MB, free: 10.98 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003736/0.01004, allocations: 32.81 kB / 285.2 MB, free: 10.96 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002593/0.01029, allocations: 114.2 kB / 285.3 MB, free: 10.89 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002293/0.01052, allocations: 88.08 kB / 285.4 MB, free: 10.82 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005487/0.01107, allocations: 229.6 kB / 285.6 MB, free: 10.69 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006004/0.01167, allocations: 0.5642 MB / 286.2 MB, free: 10.39 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003082/0.01198, allocations: 211.8 kB / 286.4 MB, free: 10.28 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004222/0.0124, allocations: 362.2 kB / 286.7 MB, free: 10.11 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002293/0.01263, allocations: 162 kB / 286.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.297e-05/0.01271, allocations: 54.31 kB / 286.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.01282, allocations: 68.52 kB / 287 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.719e-05/0.01291, allocations: 100.1 kB / 287.1 MB, free: 10.01 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001193/0.01303, allocations: 132.6 kB / 287.2 MB, free: 9.992 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004622/0.01349, allocations: 341.1 kB / 287.6 MB, free: 9.848 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.236e-05/0.0135, allocations: 0.6562 kB / 287.6 MB, free: 9.848 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.0135, allocations: 0 / 287.6 MB, free: 9.848 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.717e-05/0.01352, allocations: 1.062 kB / 287.6 MB, free: 9.848 MB / 282.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.0009723/0.01449, allocations: 0.7878 MB / 288.3 MB, free: 9.355 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.01452, allocations: 11.09 kB / 288.4 MB, free: 9.355 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002678/0.01479, allocations: 175.9 kB / 288.5 MB, free: 9.227 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003914/0.01518, allocations: 321.1 kB / 288.8 MB, free: 8.984 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.609e-05/0.01523, allocations: 45.03 kB / 288.9 MB, free: 8.961 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.201e-05/0.01529, allocations: 59.06 kB / 288.9 MB, free: 8.941 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004382/0.01573, allocations: 449.2 kB / 289.4 MB, free: 8.602 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.01574, allocations: 0 / 289.4 MB, free: 8.602 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.01576, allocations: 22.52 kB / 289.4 MB, free: 8.586 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.01577, allocations: 14.28 kB / 289.4 MB, free: 8.586 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000163/0.01594, allocations: 127 kB / 289.5 MB, free: 8.551 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.01725, allocations: 1.414 MB / 291 MB, free: 7.387 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001855/0.01744, allocations: 161.3 kB / 291.1 MB, free: 7.262 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.831e-05/0.01751, allocations: 86 kB / 291.2 MB, free: 7.211 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.01753, allocations: 10.36 kB / 291.2 MB, free: 7.207 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.01756, allocations: 43.52 kB / 291.2 MB, free: 7.16 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.854e-06/0.01756, allocations: 0.5312 kB / 291.2 MB, free: 7.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0002541/0.01782, allocations: 172.6 kB / 291.4 MB, free: 7.09 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.01786, allocations: 132.1 kB / 291.5 MB, free: 6.934 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001725/0.01803, allocations: 294.7 kB / 291.8 MB, free: 6.719 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.093e-05/0.01806, allocations: 40.27 kB / 291.9 MB, free: 6.68 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.01818, allocations: 251.6 kB / 292.1 MB, free: 6.457 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.268e-05/0.01823, allocations: 99.55 kB / 292.2 MB, free: 6.371 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.614e-05/0.01832, allocations: 111.9 kB / 292.3 MB, free: 6.297 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.736e-05/0.01841, allocations: 347 kB / 292.7 MB, free: 5.957 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.395e-05/0.0185, allocations: 49.16 kB / 292.7 MB, free: 5.945 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.01863, allocations: 218.7 kB / 292.9 MB, free: 5.727 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002334/0.01887, allocations: 278.8 kB / 293.2 MB, free: 5.504 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.01887, allocations: 5.312 kB / 293.2 MB, free: 5.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0002899/0.01916, allocations: 275.5 kB / 293.5 MB, free: 5.379 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.01918, allocations: 6.938 kB / 293.5 MB, free: 5.379 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.01918, allocations: 5.375 kB / 293.5 MB, free: 5.379 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.0192, allocations: 5.906 kB / 293.5 MB, free: 5.379 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.01937, allocations: 77.55 kB / 293.6 MB, free: 5.355 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.437e-06/0.01938, allocations: 11.44 kB / 293.6 MB, free: 5.352 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.01952, allocations: 45.05 kB / 293.6 MB, free: 5.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.01955, allocations: 15.91 kB / 293.6 MB, free: 5.316 MB / 282.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.0001291/0.01967, allocations: 168.7 kB / 293.8 MB, free: 5.164 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.384e-05/0.01974, allocations: 30.02 kB / 293.8 MB, free: 5.152 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.494e-05/0.01978, allocations: 38.52 kB / 293.9 MB, free: 5.121 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.01979, allocations: 4.344 kB / 293.9 MB, free: 5.121 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.01979, allocations: 5.094 kB / 293.9 MB, free: 5.117 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.0198, allocations: 11.11 kB / 293.9 MB, free: 5.109 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007553/0.02056, allocations: 0.7802 MB / 294.7 MB, free: 4.441 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.02056, allocations: 10.7 kB / 294.7 MB, free: 4.434 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.02068, allocations: 41.2 kB / 294.7 MB, free: 4.422 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.086e-05/0.02074, allocations: 38.55 kB / 294.8 MB, free: 4.398 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.832e-06/0.02075, allocations: 7.938 kB / 294.8 MB, free: 4.395 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.02077, allocations: 8.031 kB / 294.8 MB, free: 4.391 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.982e-06/0.02077, allocations: 7.156 kB / 294.8 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.02078, allocations: 2.906 kB / 294.8 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002807/0.02106, allocations: 338.1 kB / 295.1 MB, free: 4.121 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.02109, allocations: 20.86 kB / 295.1 MB, free: 4.105 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.466e-05/0.02116, allocations: 8.875 kB / 295.1 MB, free: 4.102 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.79e-05/0.02122, allocations: 29.95 kB / 295.2 MB, free: 4.082 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.02123, allocations: 5.844 kB / 295.2 MB, free: 4.082 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.487e-05/0.0213, allocations: 94 kB / 295.3 MB, free: 4.035 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.0213, allocations: 0 / 295.3 MB, free: 4.035 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000278/0.02158, allocations: 104.8 kB / 295.4 MB, free: 4 MB / 282.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.0001041/0.02169, allocations: 104 kB / 295.5 MB, free: 3.918 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002387/0.02193, allocations: 209.4 kB / 295.7 MB, free: 3.844 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.471e-05/0.02194, allocations: 10.09 kB / 295.7 MB, free: 3.84 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.923e-05/0.02203, allocations: 97.66 kB / 295.8 MB, free: 3.801 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004704/0.0225, allocations: 0.5996 MB / 296.4 MB, free: 3.188 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001424/0.02392, allocations: 0.773 MB / 297.2 MB, free: 2.617 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.558e-05/0.02401, allocations: 110.7 kB / 297.3 MB, free: 2.527 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000139/0.02415, allocations: 55.69 kB / 297.3 MB, free: 2.496 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00018/0.02433, allocations: 134.2 kB / 297.4 MB, free: 2.434 MB / 282.7 MB Notification: Performance of SimCode: time 1.032e-06/0.02433, allocations: 0 / 297.4 MB, free: 2.434 MB / 282.7 MB Notification: Performance of Templates: time 0.007074/0.0314, allocations: 4.437 MB / 301.9 MB, free: 14.54 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.makefile [Timeout 660] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=240 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7424109131097794]