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.0009313/0.0009313, allocations: 88.23 kB / 19.64 MB, free: 308 kB / 13.93 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.002039/0.002039, allocations: 168.9 kB / 23.02 MB, free: 1.57 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.082/1.082, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.03759/0.03759, allocations: 8.607 MB / 268.6 MB, free: 4.918 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.964e-06/1.964e-06, allocations: 0 / 342.1 MB, free: 7.164 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.701e-05/2.898e-05, allocations: 6.312 kB / 342.1 MB, free: 7.156 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.01133/0.01136, allocations: 9.763 MB / 351.9 MB, free: 13.35 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006347/0.01771, allocations: 3.726 MB / 355.6 MB, free: 9.613 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008148/0.01852, allocations: 51.5 kB / 355.6 MB, free: 9.562 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006955/0.01922, allocations: 277.9 kB / 355.9 MB, free: 9.289 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001646/0.02087, allocations: 0.9668 MB / 356.9 MB, free: 8.316 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002085/0.02295, allocations: 1.075 MB / 358 MB, free: 7.238 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002295/0.02525, allocations: 2.525 MB / 360.5 MB, free: 4.703 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008256/0.02607, allocations: 0.6513 MB / 361.1 MB, free: 4.031 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001331/0.0274, allocations: 1.255 MB / 362.4 MB, free: 2.773 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008859/0.02829, allocations: 0.7907 MB / 363.2 MB, free: 1.98 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001449/0.02843, allocations: 92 kB / 363.3 MB, free: 1.891 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005563/0.02899, allocations: 295.6 kB / 363.6 MB, free: 1.602 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002727/0.02926, allocations: 402.7 kB / 363.9 MB, free: 1.207 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003392/0.0296, allocations: 423 kB / 364.4 MB, free: 0.793 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001193/0.03079, allocations: 1.176 MB / 365.5 MB, free: 15.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.0308, allocations: 0 / 365.5 MB, free: 15.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.0308, allocations: 0 / 365.5 MB, free: 15.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.795e-05/0.03082, allocations: 4 kB / 365.5 MB, free: 15.61 MB / 298.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.001864/0.03268, allocations: 1.501 MB / 367 MB, free: 14.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.03272, allocations: 12.03 kB / 367 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003706/0.03309, allocations: 235.9 kB / 367.3 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008847/0.03398, allocations: 0.7227 MB / 368 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001995/0.03418, allocations: 351.6 kB / 368.3 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.03429, allocations: 92.34 kB / 368.4 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.03557, allocations: 1.515 MB / 370 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.03559, allocations: 12.12 kB / 370 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.529e-05/0.03567, allocations: 43.92 kB / 370 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.448e-05/0.03572, allocations: 49.98 kB / 370.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007521/0.03647, allocations: 491.2 kB / 370.5 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004072/0.04055, allocations: 5.944 MB / 376.5 MB, free: 4.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006461/0.04119, allocations: 415.9 kB / 376.9 MB, free: 3.652 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.04144, allocations: 177.6 kB / 377.1 MB, free: 3.477 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001102/0.04254, allocations: 0.9133 MB / 378 MB, free: 2.543 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000565/0.0431, allocations: 0.7242 MB / 378.7 MB, free: 1.699 MB / 298.7 MB Notification: Performance of pre-optimization done (n=71): time 2.024e-06/0.04311, allocations: 3.938 kB / 378.7 MB, free: 1.695 MB / 298.7 MB Notification: Performance of matching and sorting (n=76): time 0.003141/0.04625, allocations: 1.809 MB / 380.5 MB, free: 15.83 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.247e-05/0.04634, allocations: 244 kB / 380.7 MB, free: 15.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006235/0.04696, allocations: 0.7762 MB / 381.5 MB, free: 14.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.213e-05/0.04702, allocations: 45.7 kB / 381.6 MB, free: 14.7 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003096/0.04732, allocations: 0.5959 MB / 382.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.04748, allocations: 273.8 kB / 382.4 MB, free: 13.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002412/0.04772, allocations: 240.5 kB / 382.7 MB, free: 13.58 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.04792, allocations: 0.5859 MB / 383.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002897/0.04821, allocations: 170.5 kB / 383.4 MB, free: 12.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006586/0.04887, allocations: 1.059 MB / 384.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.05001, allocations: 1.247 MB / 385.7 MB, free: 9.848 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.837e-06/0.05002, allocations: 8 kB / 385.7 MB, free: 9.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.001514/0.05153, allocations: 1.108 MB / 386.8 MB, free: 8.711 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.05156, allocations: 15.98 kB / 386.9 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.05158, allocations: 16.91 kB / 386.9 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005525/0.05213, allocations: 270.8 kB / 387.1 MB, free: 8.402 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000492/0.05262, allocations: 251.6 kB / 387.4 MB, free: 8.156 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/0.05489, allocations: 4.894 MB / 392.3 MB, free: 2.988 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004483/0.05534, allocations: 47.98 kB / 392.3 MB, free: 2.941 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.192e-05/0.05541, allocations: 67.98 kB / 392.4 MB, free: 2.875 MB / 314.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.0003506/0.05576, allocations: 272.6 kB / 392.7 MB, free: 2.594 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.05589, allocations: 127.3 kB / 392.8 MB, free: 2.469 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001389/0.05728, allocations: 1.017 MB / 393.8 MB, free: 1.426 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.05729, allocations: 8 kB / 393.8 MB, free: 1.418 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-06/0.05729, allocations: 0 / 393.8 MB, free: 1.418 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.0573, allocations: 3.984 kB / 393.8 MB, free: 1.414 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002032/0.05933, allocations: 1.578 MB / 395.4 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.05934, allocations: 8.031 kB / 395.4 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003012/0.05964, allocations: 119.9 kB / 395.5 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003744/0.06001, allocations: 230.8 kB / 395.7 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.707e-05/0.06006, allocations: 27.98 kB / 395.8 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002248/0.06231, allocations: 4.883 MB / 400.6 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.06231, allocations: 0 / 400.6 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001533/0.06384, allocations: 1.159 MB / 401.8 MB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002917/0.06414, allocations: 183.2 kB / 402 MB, free: 8.809 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.677e-05/0.06422, allocations: 24 kB / 402 MB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002905/0.06451, allocations: 31.97 kB / 402 MB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.06466, allocations: 92.44 kB / 402.1 MB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.068e-05/0.06471, allocations: 31.98 kB / 402.2 MB, free: 8.633 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003841/0.06509, allocations: 466.9 kB / 402.6 MB, free: 8.184 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06509, allocations: 0 / 402.6 MB, free: 8.184 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000903/0.06599, allocations: 311.9 kB / 402.9 MB, free: 7.879 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 (70): * Single equations (assignments): 59 * 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.0003304/0.06632, allocations: 227.7 kB / 403.1 MB, free: 7.648 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00124/0.06756, allocations: 1.023 MB / 404.2 MB, free: 6.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.06757, allocations: 8.062 kB / 404.2 MB, free: 6.582 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005983/0.06817, allocations: 0.653 MB / 404.8 MB, free: 5.891 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.06925, allocations: 437 kB / 405.3 MB, free: 5.477 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002442/0.07169, allocations: 1.774 MB / 407 MB, free: 3.648 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001623/0.07185, allocations: 237.9 kB / 407.3 MB, free: 3.395 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005233/0.07237, allocations: 263.1 kB / 407.5 MB, free: 3.141 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.07253, allocations: 92.47 kB / 407.6 MB, free: 3.051 MB / 330.7 MB Notification: Performance of SimCode: time 9.22e-07/0.07253, allocations: 0 / 407.6 MB, free: 3.051 MB / 330.7 MB Notification: Performance of Templates: time 0.1335/0.206, allocations: 19.92 MB / 427.5 MB, free: 61.73 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.7737137880176306]