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.0009035/0.0009035, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001501/0.002405, 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.001146/0.001146, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001384/0.00253, 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 1.205/1.205, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1464/1.352, allocations: 53.65 MB / 243.2 MB, free: 15.59 MB / 250.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.03812/0.03812, allocations: 8.608 MB / 252.6 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01006/0.04818, allocations: 3.129 MB / 255.7 MB, free: 3.598 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.553e-06/1.553e-06, allocations: 0 / 258.2 MB, free: 1.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.557e-05/2.712e-05, allocations: 2.312 kB / 258.2 MB, free: 1.074 MB / 250.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.01278/0.0128, allocations: 9.791 MB / 268 MB, free: 7.234 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007878/0.02068, allocations: 3.796 MB / 271.8 MB, free: 3.426 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001557/0.02224, allocations: 55.5 kB / 271.8 MB, free: 3.371 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008835/0.02312, allocations: 273.8 kB / 272.1 MB, free: 3.102 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002773/0.0259, allocations: 0.9629 MB / 273.1 MB, free: 2.133 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002995/0.02889, allocations: 1.068 MB / 274.1 MB, free: 1.062 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.2174/0.2463, allocations: 2.535 MB / 276.7 MB, free: 3.469 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001953/0.2482, allocations: 0.6552 MB / 277.3 MB, free: 3.398 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004173/0.2524, allocations: 1.344 MB / 278.7 MB, free: 3.273 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002141/0.2545, allocations: 0.7393 MB / 279.4 MB, free: 3.195 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003908/0.2549, allocations: 91.38 kB / 279.5 MB, free: 3.195 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001114/0.256, allocations: 311.6 kB / 279.8 MB, free: 3.188 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004321/0.2565, allocations: 308.7 kB / 280.1 MB, free: 3.141 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008095/0.2573, allocations: 336.7 kB / 280.4 MB, free: 3.098 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002354/0.2596, allocations: 1.03 MB / 281.5 MB, free: 3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.206e-05/0.2597, allocations: 0 / 281.5 MB, free: 3 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.537e-06/0.2597, allocations: 0 / 281.5 MB, free: 3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.274e-05/0.2597, allocations: 0 / 281.5 MB, free: 3 MB / 266.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.004203/0.2639, allocations: 1.699 MB / 283.2 MB, free: 2.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.752e-05/0.264, allocations: 13.78 kB / 283.2 MB, free: 2.246 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007539/0.2648, allocations: 195.2 kB / 283.4 MB, free: 2.23 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001642/0.2664, allocations: 0.6195 MB / 284 MB, free: 1.965 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003353/0.2667, allocations: 348.2 kB / 284.3 MB, free: 1.648 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000183/0.2669, allocations: 88.75 kB / 284.4 MB, free: 1.648 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00198/0.2689, allocations: 1.352 MB / 285.8 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.076e-05/0.2689, allocations: 7.25 kB / 285.8 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-05/0.269, allocations: 43.22 kB / 285.8 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001067/0.2691, allocations: 54.69 kB / 285.9 MB, free: 0.707 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009404/0.2701, allocations: 386.3 kB / 286.2 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005484/0.2755, allocations: 4.181 MB / 290.4 MB, free: 13.87 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007997/0.2763, allocations: 392.2 kB / 290.8 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001989/0.2765, allocations: 132.2 kB / 290.9 MB, free: 13.77 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001671/0.2782, allocations: 0.7487 MB / 291.7 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007226/0.2789, allocations: 0.6668 MB / 292.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of pre-optimization done (n=71): time 2.244e-06/0.2789, allocations: 1.594 kB / 292.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of matching and sorting (n=76): time 0.003196/0.2821, allocations: 1.302 MB / 293.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/0.2822, allocations: 69.16 kB / 293.7 MB, free: 12.59 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006899/0.2829, allocations: 0.7194 MB / 294.4 MB, free: 12.41 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.149e-05/0.2829, allocations: 42.98 kB / 294.5 MB, free: 12.38 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003267/0.2833, allocations: 474.2 kB / 295 MB, free: 12.08 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002119/0.2835, allocations: 264.4 kB / 295.2 MB, free: 11.92 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002448/0.2837, allocations: 235.3 kB / 295.4 MB, free: 11.89 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.2839, allocations: 415.2 kB / 295.8 MB, free: 11.58 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.2841, allocations: 131.9 kB / 296 MB, free: 11.57 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005904/0.2847, allocations: 0.82 MB / 296.8 MB, free: 10.73 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.2858, allocations: 1.002 MB / 297.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.715e-06/0.2858, allocations: 3.062 kB / 297.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.001229/0.2871, allocations: 0.8215 MB / 298.6 MB, free: 10 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.577e-05/0.2871, allocations: 14.38 kB / 298.6 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.27e-05/0.2871, allocations: 14.12 kB / 298.6 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007159/0.2878, allocations: 278 kB / 298.9 MB, free: 9.953 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006615/0.2885, allocations: 303 kB / 299.2 MB, free: 9.953 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002769/0.2913, allocations: 3.521 MB / 302.7 MB, free: 6.574 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001062/0.2923, allocations: 49.72 kB / 302.8 MB, free: 6.547 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.451e-05/0.2924, allocations: 55.3 kB / 302.8 MB, free: 6.508 MB / 282.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: 75 * 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 (142): * Single equations (assignments): 139 * 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.0006915/0.2931, allocations: 234.7 kB / 303.1 MB, free: 6.336 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.2933, allocations: 92.72 kB / 303.2 MB, free: 6.277 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0012/0.2945, allocations: 0.7579 MB / 303.9 MB, free: 5.719 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.616e-05/0.2945, allocations: 9.875 kB / 303.9 MB, free: 5.711 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.2945, allocations: 7.938 kB / 303.9 MB, free: 5.703 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.2945, allocations: 3.984 kB / 303.9 MB, free: 5.699 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001893/0.2964, allocations: 1.089 MB / 305 MB, free: 4.738 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.2964, allocations: 4 kB / 305 MB, free: 4.734 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003796/0.2968, allocations: 135.2 kB / 305.2 MB, free: 4.613 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003061/0.2971, allocations: 134.6 kB / 305.3 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005571/0.2976, allocations: 245.1 kB / 305.5 MB, free: 4.277 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.995e-05/0.2977, allocations: 23.42 kB / 305.6 MB, free: 4.266 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002303/0.3, allocations: 3.506 MB / 309.1 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.289e-06/0.3, allocations: 0 / 309.1 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.3011, allocations: 0.8209 MB / 309.9 MB, free: 15.85 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001592/0.3013, allocations: 22.31 kB / 309.9 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003566/0.3016, allocations: 26.42 kB / 309.9 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.3018, allocations: 79.08 kB / 310 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.802e-05/0.3019, allocations: 27.91 kB / 310 MB, free: 15.74 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003175/0.3022, allocations: 315.3 kB / 310.3 MB, free: 15.49 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3022, allocations: 0 / 310.3 MB, free: 15.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001447/0.3036, allocations: 317.1 kB / 310.7 MB, free: 15.21 MB / 298.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.0004487/0.3041, allocations: 205 kB / 310.9 MB, free: 15.04 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.3054, allocations: 0.8008 MB / 311.7 MB, free: 14.31 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.752e-05/0.3054, allocations: 31 kB / 311.7 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005743/0.306, allocations: 0.501 MB / 312.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.3073, allocations: 0.5266 MB / 312.7 MB, free: 13.38 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.3174, allocations: 1.744 MB / 314.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002343/0.3176, allocations: 225.6 kB / 314.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0009739/0.3186, allocations: 185 kB / 314.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008175/0.3194, allocations: 402.6 kB / 315.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of SimCode: time 4.509e-06/0.3194, allocations: 0 / 315.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of Templates: time 0.03443/0.3538, allocations: 22.64 MB / 337.9 MB, free: 5.059 MB / 314.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 sys.exit(0), Time elapsed: 14.975530905649066]