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.000679/0.000679, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009018/0.001581, 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.001048/0.001048, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00125/0.002299, 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 0.9989/0.9989, allocations: 177.2 MB / 189.7 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08815/1.087, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1022/0.1022, allocations: 24.19 MB / 268.3 MB, free: 7.098 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1335/0.2357, allocations: 7.758 MB / 276.1 MB, free: 0.8398 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-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.463e-06/1.463e-06, allocations: 0 / 277.5 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.757e-06/1.022e-05, allocations: 4.719 kB / 277.5 MB, free: 120 kB / 266.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006597/0.006607, allocations: 6.588 MB / 284.1 MB, free: 11.78 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002031/0.008638, allocations: 1.053 MB / 285.2 MB, free: 11.03 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000346/0.008984, allocations: 29.38 kB / 285.2 MB, free: 11.01 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002387/0.009223, allocations: 115.6 kB / 285.3 MB, free: 10.94 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002015/0.009424, allocations: 84.41 kB / 285.4 MB, free: 10.88 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005698/0.009994, allocations: 233.4 kB / 285.6 MB, free: 10.74 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006048/0.0106, allocations: 0.5665 MB / 286.2 MB, free: 10.44 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000336/0.01094, allocations: 210.3 kB / 286.4 MB, free: 10.33 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004843/0.01142, allocations: 363.8 kB / 286.8 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002392/0.01166, allocations: 159.4 kB / 286.9 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.677e-05/0.01176, allocations: 54.66 kB / 287 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.0119, allocations: 68.52 kB / 287 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.01203, allocations: 99.91 kB / 287.1 MB, free: 10.06 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.01218, allocations: 132.3 kB / 287.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005563/0.01274, allocations: 341.8 kB / 287.6 MB, free: 9.898 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-05/0.01276, allocations: 0 / 287.6 MB, free: 9.898 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.01276, allocations: 0.5625 kB / 287.6 MB, free: 9.898 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.81e-05/0.01278, allocations: 0 / 287.6 MB, free: 9.898 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.001049/0.01383, allocations: 0.7824 MB / 288.4 MB, free: 9.41 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.01386, allocations: 11.44 kB / 288.4 MB, free: 9.41 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003084/0.01417, allocations: 179 kB / 288.6 MB, free: 9.301 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004196/0.01459, allocations: 325.4 kB / 288.9 MB, free: 9.059 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.205e-05/0.01464, allocations: 44.28 kB / 288.9 MB, free: 9.035 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.338e-05/0.01472, allocations: 59.16 kB / 289 MB, free: 9.016 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004873/0.0152, allocations: 443.5 kB / 289.4 MB, free: 8.68 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.01522, allocations: 2.641 kB / 289.4 MB, free: 8.68 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.919e-05/0.01525, allocations: 21.47 kB / 289.4 MB, free: 8.664 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.305e-05/0.01527, allocations: 14.53 kB / 289.5 MB, free: 8.664 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002083/0.01548, allocations: 125.9 kB / 289.6 MB, free: 8.629 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001515/0.017, allocations: 1.416 MB / 291 MB, free: 7.465 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.01718, allocations: 163.9 kB / 291.1 MB, free: 7.34 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.303e-05/0.01727, allocations: 89.58 kB / 291.2 MB, free: 7.285 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.01728, allocations: 6.875 kB / 291.2 MB, free: 7.285 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.01731, allocations: 42.62 kB / 291.3 MB, free: 7.238 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.293e-06/0.01731, allocations: 0 / 291.3 MB, free: 7.238 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0002938/0.01761, allocations: 167.5 kB / 291.4 MB, free: 7.172 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/0.01766, allocations: 140.4 kB / 291.6 MB, free: 7.008 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001901/0.01785, allocations: 290.5 kB / 291.9 MB, free: 6.797 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.645e-05/0.01788, allocations: 43.25 kB / 291.9 MB, free: 6.754 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.01801, allocations: 256.5 kB / 292.2 MB, free: 6.527 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.572e-05/0.01807, allocations: 92.14 kB / 292.3 MB, free: 6.449 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.01817, allocations: 110.5 kB / 292.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.31e-05/0.01827, allocations: 347.5 kB / 292.7 MB, free: 6.035 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.037e-05/0.01835, allocations: 50.12 kB / 292.7 MB, free: 6.023 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001643/0.01851, allocations: 227.2 kB / 293 MB, free: 5.801 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002561/0.01877, allocations: 274.8 kB / 293.2 MB, free: 5.582 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.01877, allocations: 5.375 kB / 293.2 MB, free: 5.578 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0002953/0.01907, allocations: 270.5 kB / 293.5 MB, free: 5.461 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.01908, allocations: 11.42 kB / 293.5 MB, free: 5.457 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.01909, allocations: 4.125 kB / 293.5 MB, free: 5.457 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.01911, allocations: 12.25 kB / 293.5 MB, free: 5.453 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.01928, allocations: 73 kB / 293.6 MB, free: 5.434 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.01929, allocations: 10.81 kB / 293.6 MB, free: 5.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.0194, allocations: 49.62 kB / 293.7 MB, free: 5.395 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/0.01942, allocations: 15.69 kB / 293.7 MB, free: 5.391 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.0001391/0.01956, allocations: 163.9 kB / 293.8 MB, free: 5.242 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.535e-05/0.01963, allocations: 30.5 kB / 293.9 MB, free: 5.23 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.221e-05/0.01968, allocations: 38.56 kB / 293.9 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.01969, allocations: 6.906 kB / 293.9 MB, free: 5.195 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.01969, allocations: 5.719 kB / 293.9 MB, free: 5.191 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.0197, allocations: 5.344 kB / 293.9 MB, free: 5.188 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008196/0.02052, allocations: 0.7848 MB / 294.7 MB, free: 4.516 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.02052, allocations: 2.5 kB / 294.7 MB, free: 4.516 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/0.02065, allocations: 41.55 kB / 294.8 MB, free: 4.504 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.969e-05/0.02071, allocations: 38.98 kB / 294.8 MB, free: 4.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.742e-06/0.02072, allocations: 11.34 kB / 294.8 MB, free: 4.473 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.02074, allocations: 9.547 kB / 294.8 MB, free: 4.469 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.02074, allocations: 3.75 kB / 294.8 MB, free: 4.469 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.02075, allocations: 10.58 kB / 294.8 MB, free: 4.461 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003266/0.02107, allocations: 337.8 kB / 295.2 MB, free: 4.195 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.397e-05/0.02111, allocations: 12.78 kB / 295.2 MB, free: 4.188 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.21e-05/0.02118, allocations: 9.156 kB / 295.2 MB, free: 4.184 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.262e-05/0.02124, allocations: 30.83 kB / 295.2 MB, free: 4.164 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.02126, allocations: 9.797 kB / 295.2 MB, free: 4.16 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.971e-05/0.02134, allocations: 96.91 kB / 295.3 MB, free: 4.109 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02134, allocations: 0 / 295.3 MB, free: 4.109 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002692/0.02161, allocations: 105.2 kB / 295.4 MB, free: 4.074 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.0001299/0.02173, allocations: 99.91 kB / 295.5 MB, free: 3.996 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002687/0.022, allocations: 212.2 kB / 295.7 MB, free: 3.922 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.556e-05/0.02202, allocations: 13.98 kB / 295.7 MB, free: 3.914 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.918e-05/0.02212, allocations: 95.88 kB / 295.8 MB, free: 3.875 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000536/0.02265, allocations: 0.595 MB / 296.4 MB, free: 3.27 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.02394, allocations: 0.7772 MB / 297.2 MB, free: 2.695 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.517e-05/0.02401, allocations: 109.9 kB / 297.3 MB, free: 2.605 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001278/0.02414, allocations: 48.2 kB / 297.4 MB, free: 2.582 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/0.02432, allocations: 135 kB / 297.5 MB, free: 2.52 MB / 282.7 MB Notification: Performance of SimCode: time 5.61e-07/0.02432, allocations: 0 / 297.5 MB, free: 2.52 MB / 282.7 MB Notification: Performance of Templates: time 0.007067/0.03138, allocations: 4.44 MB / 301.9 MB, free: 14.68 MB / 298.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.6540094120427966]