Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.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.0009064/0.0009064, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.0009114/0.0009114, allocations: 173 kB / 23.5 MB, free: 1.051 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 1.047/1.047, allocations: 177.1 MB / 203.8 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.04185/0.04185, allocations: 8.618 MB / 268.9 MB, free: 4.949 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.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(IndustrialControlSystems.Applications.ProcessControl.LevelControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl") translateModel(IndustrialControlSystems.Applications.ProcessControl.LevelControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 342.1 MB, free: 7.488 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.315e-05/2.483e-05, allocations: 2.312 kB / 342.1 MB, free: 7.484 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.0154/0.01542, allocations: 22.62 MB / 364.7 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007479/0.0229, allocations: 6.69 MB / 371.4 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003934/0.02683, allocations: 51.5 kB / 371.5 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.02788, allocations: 397.1 kB / 371.9 MB, free: 9.625 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005436/0.03332, allocations: 1.161 MB / 373 MB, free: 8.457 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005767/0.03909, allocations: 1.238 MB / 374.3 MB, free: 7.215 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00602/0.04511, allocations: 2.49 MB / 376.7 MB, free: 4.715 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009672/0.04607, allocations: 0.6513 MB / 377.4 MB, free: 4.047 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004898/0.05097, allocations: 1.332 MB / 378.7 MB, free: 2.711 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001108/0.05208, allocations: 0.7907 MB / 379.5 MB, free: 1.918 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001557/0.05224, allocations: 96 kB / 379.6 MB, free: 1.824 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003995/0.05623, allocations: 467 kB / 380.1 MB, free: 1.367 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003607/0.05659, allocations: 394.7 kB / 380.5 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004646/0.05706, allocations: 427 kB / 380.9 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005307/0.06236, allocations: 1.3 MB / 382.2 MB, free: 15.26 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.06237, allocations: 4 kB / 382.2 MB, free: 15.25 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.06237, allocations: 0 / 382.2 MB, free: 15.25 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.905e-05/0.06241, allocations: 0 / 382.2 MB, free: 15.25 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.002689/0.0651, allocations: 1.543 MB / 383.7 MB, free: 13.67 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.06514, allocations: 8.031 kB / 383.7 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005439/0.06569, allocations: 239.9 kB / 384 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.06677, allocations: 0.715 MB / 384.7 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000243/0.06701, allocations: 339.6 kB / 385 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.06715, allocations: 88.36 kB / 385.1 MB, free: 12.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004623/0.07177, allocations: 1.527 MB / 386.6 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.673e-05/0.0718, allocations: 16.06 kB / 386.6 MB, free: 10.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.33e-05/0.07189, allocations: 43.92 kB / 386.7 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.27e-05/0.07196, allocations: 49.98 kB / 386.7 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009299/0.07289, allocations: 487.2 kB / 387.2 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01126/0.08415, allocations: 5.948 MB / 393.2 MB, free: 3.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.08521, allocations: 416.7 kB / 393.6 MB, free: 3.262 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003748/0.08559, allocations: 181.6 kB / 393.7 MB, free: 3.082 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001638/0.08723, allocations: 0.9242 MB / 394.7 MB, free: 2.137 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008045/0.08803, allocations: 0.7242 MB / 395.4 MB, free: 1.293 MB / 314.7 MB Notification: Performance of pre-optimization done (n=71): time 2.364e-06/0.08803, allocations: 0 / 395.4 MB, free: 1.293 MB / 314.7 MB Notification: Performance of matching and sorting (n=76): time 0.004744/0.09278, allocations: 1.821 MB / 397.2 MB, free: 15.42 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.09289, allocations: 252 kB / 397.5 MB, free: 15.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.09393, allocations: 0.7762 MB / 398.2 MB, free: 14.33 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.152e-05/0.094, allocations: 41.7 kB / 398.3 MB, free: 14.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004293/0.09443, allocations: 0.5882 MB / 398.9 MB, free: 13.69 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002343/0.09467, allocations: 269.8 kB / 399.1 MB, free: 13.42 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003662/0.09503, allocations: 244.4 kB / 399.4 MB, free: 13.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002543/0.09529, allocations: 0.5859 MB / 399.9 MB, free: 12.58 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004394/0.09573, allocations: 170.5 kB / 400.1 MB, free: 12.41 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009843/0.09671, allocations: 1.063 MB / 401.2 MB, free: 10.98 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001992/0.0987, allocations: 1.251 MB / 402.4 MB, free: 9.434 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.477e-06/0.09871, allocations: 4 kB / 402.4 MB, free: 9.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002314/0.101, allocations: 1.12 MB / 403.6 MB, free: 8.289 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.339e-05/0.1011, allocations: 12.62 kB / 403.6 MB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/0.1011, allocations: 16 kB / 403.6 MB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007548/0.1018, allocations: 267.4 kB / 403.8 MB, free: 7.988 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008151/0.1027, allocations: 255.6 kB / 404.1 MB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003512/0.1062, allocations: 4.897 MB / 409 MB, free: 2.566 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007202/0.1069, allocations: 56.11 kB / 409 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.107, allocations: 63.98 kB / 409.1 MB, free: 2.449 MB / 330.7 MB Warning: Assuming fixed start value for the following 8 variables: PI_Level.cs:DISCRETE(fixed = true ) \"Pre-biased Control Signal\" type: Real PI_Level.satin:DISCRETE(fixed = true ) \"input of the saturation block\" type: Real sub.Yfp:DISCRETE(fixed = true ) \"floating point converted output\" type: Integer tank.level:VARIABLE(min = 0.0 start = tank.level_start_eps unit = \"m\" fixed = true stateSelect=StateSelect.prefer ) \"Level height of tank\" type: Real tank.medium.T:VARIABLE(min = 1.0 max = 1e4 start = tank.T_start unit = \"K\" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) \"Temperature of medium\" type: Real actuator.y:VARIABLE(flow=false min = 0.0 max = 1.0 start = actuator.y_start fixed = true ) \"Connector of Real output signal\" type: Real PI_Level.CS:DISCRETE(flow=false fixed = true ) \"Control signal\" type: Real div.Yfp:DISCRETE(fixed = true ) \"floating point converted output\" type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 27 (PI_Level.FBout,$PRE.PI_Level.FBout,$PRE.PI_Level.cs,PI_Level.cs,$PRE.PI_Level.satin,PI_Level.satin,$whenCondition1,$PRE.sub.Yfp,sub.Yfp,div.U1fp,$PRE.PI_Level.CS,sub.U1fp,tank.inFlow[3],tank.inFlow[2],tank.inFlow[1],tank.regularFlow[3],tank.regularFlow[2],tank.regularFlow[1],PI_Level.CS,PI_Level.TS_in,$PRE.div.Yfp,div.U2fp,div.Yfp,sub.U2fp,PI_Level.satLOW_in,PI_Level.satHIGH_in,PI_Level.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,7), (2,1), (2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004769/0.1075, allocations: 283.5 kB / 409.4 MB, free: 2.16 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002205/0.1077, allocations: 123.4 kB / 409.5 MB, free: 2.039 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002274/0.11, allocations: 1.039 MB / 410.5 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/0.11, allocations: 8 kB / 410.6 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.11, allocations: 0 / 410.6 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.11, allocations: 7.922 kB / 410.6 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1301/0.2401, allocations: 1.591 MB / 412.1 MB, free: 78.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.136e-06/0.2401, allocations: 2.125 kB / 412.2 MB, free: 78.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003454/0.2405, allocations: 121.5 kB / 412.3 MB, free: 78.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004139/0.2409, allocations: 236.9 kB / 412.5 MB, free: 78.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-05/0.2409, allocations: 21.92 kB / 412.5 MB, free: 78.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001503/0.2424, allocations: 4.883 MB / 417.4 MB, free: 73.52 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2424, allocations: 5.562 kB / 417.4 MB, free: 73.52 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.244, allocations: 1.167 MB / 418.6 MB, free: 73.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003041/0.2443, allocations: 186.1 kB / 418.8 MB, free: 73.18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.2444, allocations: 21 kB / 418.8 MB, free: 73.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003381/0.2448, allocations: 32.5 kB / 418.8 MB, free: 73.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.2449, allocations: 85.72 kB / 418.9 MB, free: 73.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.374e-05/0.245, allocations: 36.61 kB / 418.9 MB, free: 73.18 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004111/0.2454, allocations: 464.7 kB / 419.4 MB, free: 73.04 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2454, allocations: 2.156 kB / 419.4 MB, free: 73.04 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009999/0.2464, allocations: 349.9 kB / 419.7 MB, free: 73.04 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (tank.level,tank.medium.T,actuator.y) * Number of discrete variables: 15 ($whenCondition1,PI_Level.CS,PI_Level.FBout,PI_Level.cs,PI_Level.satin,tank.regularFlow[1],tank.regularFlow[2],tank.regularFlow[3],tank.inFlow[1],tank.inFlow[2],tank.inFlow[3],div.U1fp,div.Yfp,sub.U1fp,sub.Yfp) * Number of discrete states: 2 (PI_Level.FBout,PI_Level.cs) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,9), (2,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000435/0.2468, allocations: 298.3 kB / 420 MB, free: 72.95 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001255/0.2481, allocations: 1.03 MB / 421.1 MB, free: 72.53 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.2481, allocations: 1.219 kB / 421.1 MB, free: 72.53 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005977/0.2487, allocations: 0.6642 MB / 421.7 MB, free: 72.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.2498, allocations: 443.2 kB / 422.1 MB, free: 72.14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002239/0.2521, allocations: 1.774 MB / 423.9 MB, free: 71.34 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001292/0.2522, allocations: 233.5 kB / 424.2 MB, free: 71.26 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005321/0.2527, allocations: 274.3 kB / 424.4 MB, free: 71.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.2529, allocations: 95.19 kB / 424.5 MB, free: 71.22 MB / 330.7 MB Notification: Performance of SimCode: time 6.02e-07/0.2529, allocations: 4 kB / 424.5 MB, free: 71.22 MB / 330.7 MB Notification: Performance of Templates: time 0.01853/0.2714, allocations: 21.17 MB / 445.7 MB, free: 52.28 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.makefile [Timeout 660] (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.sim & ./IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl -abortSlowSimulation -alarm=240 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 3.9518797018099576]