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.001097/0.001097, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004036/0.005134, allocations: 435.8 kB / 10.33 MB, free: 368 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.001209/0.001209, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001442/0.002651, allocations: 463.6 kB / 11.68 MB, free: 2.484 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 0.9796/0.9796, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09876/1.078, allocations: 53.65 MB / 243.2 MB, free: 15.58 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.1766/0.1766, allocations: 24.15 MB / 268.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1264/0.303, allocations: 7.757 MB / 275.9 MB, free: 0.8477 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.443e-06/1.443e-06, allocations: 0 / 277.3 MB, free: 152 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.877e-06/1.032e-05, allocations: 3.984 kB / 277.3 MB, free: 148 kB / 266.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.01282/0.01283, allocations: 6.581 MB / 283.9 MB, free: 11.82 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005785/0.01862, allocations: 1.051 MB / 284.9 MB, free: 11.06 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003272/0.01895, allocations: 30.53 kB / 284.9 MB, free: 11.04 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002433/0.01919, allocations: 112.4 kB / 285.1 MB, free: 10.98 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002086/0.0194, allocations: 87.91 kB / 285.1 MB, free: 10.91 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004965/0.0199, allocations: 235 kB / 285.4 MB, free: 10.77 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005727/0.02047, allocations: 0.5656 MB / 285.9 MB, free: 10.47 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003376/0.02081, allocations: 217.7 kB / 286.1 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004067/0.02121, allocations: 357.2 kB / 286.5 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002435/0.02146, allocations: 167.2 kB / 286.7 MB, free: 10.12 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003076/0.02453, allocations: 54.09 kB / 286.7 MB, free: 10.12 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.513e-05/0.02463, allocations: 61.66 kB / 286.8 MB, free: 10.12 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.571e-05/0.02471, allocations: 96.52 kB / 286.9 MB, free: 10.1 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.02484, allocations: 133.7 kB / 287 MB, free: 10.08 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003805/0.02522, allocations: 340.9 kB / 287.3 MB, free: 9.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.266e-05/0.02523, allocations: 4.281 kB / 287.3 MB, free: 9.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.02523, allocations: 0 / 287.3 MB, free: 9.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.02525, allocations: 0 / 287.3 MB, free: 9.93 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.0009189/0.02617, allocations: 0.7807 MB / 288.1 MB, free: 9.441 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.0262, allocations: 9.844 kB / 288.1 MB, free: 9.441 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005321/0.02673, allocations: 186.7 kB / 288.3 MB, free: 9.324 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004146/0.02715, allocations: 316.4 kB / 288.6 MB, free: 9.098 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.675e-05/0.02719, allocations: 44.59 kB / 288.7 MB, free: 9.074 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.223e-05/0.02726, allocations: 59.61 kB / 288.7 MB, free: 9.055 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003455/0.03071, allocations: 446.5 kB / 289.2 MB, free: 8.715 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.03072, allocations: 0 / 289.2 MB, free: 8.715 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.03075, allocations: 17.84 kB / 289.2 MB, free: 8.703 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.03076, allocations: 13.03 kB / 289.2 MB, free: 8.703 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.03094, allocations: 130.4 kB / 289.3 MB, free: 8.664 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0013/0.03224, allocations: 1.416 MB / 290.7 MB, free: 7.5 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001804/0.03242, allocations: 160.1 kB / 290.9 MB, free: 7.375 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.03255, allocations: 87.17 kB / 291 MB, free: 7.324 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/0.03256, allocations: 7.469 kB / 291 MB, free: 7.324 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.03259, allocations: 38.78 kB / 291 MB, free: 7.281 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.593e-06/0.03259, allocations: 0 / 291 MB, free: 7.281 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0003477/0.03294, allocations: 170.6 kB / 291.2 MB, free: 7.211 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.033, allocations: 142.8 kB / 291.3 MB, free: 7.047 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002471/0.03325, allocations: 289.2 kB / 291.6 MB, free: 6.832 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.269e-05/0.03329, allocations: 44.16 kB / 291.6 MB, free: 6.789 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.03347, allocations: 255.6 kB / 291.9 MB, free: 6.562 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.946e-05/0.03355, allocations: 95.58 kB / 292 MB, free: 6.48 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.03368, allocations: 106.6 kB / 292.1 MB, free: 6.41 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.03382, allocations: 353.4 kB / 292.4 MB, free: 6.066 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.03394, allocations: 47.78 kB / 292.5 MB, free: 6.055 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.03415, allocations: 219.8 kB / 292.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.03444, allocations: 264.2 kB / 293 MB, free: 5.629 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.03444, allocations: 1.312 kB / 293 MB, free: 5.629 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0003025/0.03474, allocations: 277.4 kB / 293.2 MB, free: 5.504 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.03476, allocations: 10.28 kB / 293.2 MB, free: 5.504 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.03476, allocations: 4.625 kB / 293.2 MB, free: 5.504 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.839e-06/0.03477, allocations: 6.25 kB / 293.2 MB, free: 5.504 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.03493, allocations: 77.44 kB / 293.3 MB, free: 5.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.03494, allocations: 19.02 kB / 293.3 MB, free: 5.469 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.807e-05/0.03504, allocations: 45.7 kB / 293.4 MB, free: 5.438 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/0.03506, allocations: 15.41 kB / 293.4 MB, free: 5.434 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.0001209/0.03518, allocations: 171.5 kB / 293.6 MB, free: 5.277 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.974e-05/0.03524, allocations: 27.94 kB / 293.6 MB, free: 5.27 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.894e-05/0.03528, allocations: 37.42 kB / 293.6 MB, free: 5.238 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.03529, allocations: 4.219 kB / 293.6 MB, free: 5.238 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.03529, allocations: 1.406 kB / 293.6 MB, free: 5.238 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.0353, allocations: 13.39 kB / 293.7 MB, free: 5.227 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007833/0.03608, allocations: 0.79 MB / 294.4 MB, free: 4.551 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.03608, allocations: 2.125 kB / 294.4 MB, free: 4.551 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.03624, allocations: 40.94 kB / 294.5 MB, free: 4.539 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-05/0.03631, allocations: 39.78 kB / 294.5 MB, free: 4.516 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.03631, allocations: 8.328 kB / 294.5 MB, free: 4.512 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.03633, allocations: 11.98 kB / 294.5 MB, free: 4.504 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.03633, allocations: 8.094 kB / 294.6 MB, free: 4.5 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.03634, allocations: 10.86 kB / 294.6 MB, free: 4.492 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002596/0.0366, allocations: 334.8 kB / 294.9 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.03663, allocations: 12.16 kB / 294.9 MB, free: 4.223 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.224e-05/0.0367, allocations: 12.73 kB / 294.9 MB, free: 4.215 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.473e-05/0.03674, allocations: 30.36 kB / 294.9 MB, free: 4.195 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.03675, allocations: 9.219 kB / 295 MB, free: 4.191 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.717e-05/0.03683, allocations: 93.12 kB / 295 MB, free: 4.145 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03683, allocations: 5.406 kB / 295 MB, free: 4.141 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002231/0.03705, allocations: 105.2 kB / 295.2 MB, free: 4.105 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 8.356e-05/0.03714, allocations: 99.66 kB / 295.2 MB, free: 4.027 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002019/0.03734, allocations: 203.8 kB / 295.4 MB, free: 3.957 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/0.03735, allocations: 8.875 kB / 295.5 MB, free: 3.953 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.382e-05/0.03742, allocations: 80.81 kB / 295.5 MB, free: 3.922 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.03769, allocations: 112.5 kB / 295.6 MB, free: 3.879 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009572/0.03864, allocations: 0.7722 MB / 296.4 MB, free: 3.309 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.598e-05/0.03871, allocations: 113.5 kB / 296.5 MB, free: 3.215 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.03882, allocations: 51.78 kB / 296.6 MB, free: 3.188 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.03897, allocations: 137 kB / 296.7 MB, free: 3.121 MB / 282.7 MB Notification: Performance of SimCode: time 4.41e-07/0.03897, allocations: 5.125 kB / 296.7 MB, free: 3.117 MB / 282.7 MB Notification: Performance of Templates: time 0.006536/0.04551, allocations: 4.572 MB / 301.3 MB, free: 15.16 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.7542590154334903]