Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.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.0007584/0.0007584, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001028/0.001786, 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.0007494/0.0007494, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009349/0.001684, 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.213/1.213, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1362/1.349, 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.04306/0.04306, allocations: 8.613 MB / 252.6 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.009707/0.05276, allocations: 3.133 MB / 255.7 MB, free: 3.59 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.CascadeLevelControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl") translateModel(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.374e-06/2.374e-06, allocations: 0 / 258.2 MB, free: 1.074 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.416e-05/3.654e-05, allocations: 2.312 kB / 258.2 MB, free: 1.07 MB / 250.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.01239/0.01243, allocations: 10.27 MB / 268.5 MB, free: 6.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008714/0.02114, allocations: 4.081 MB / 272.6 MB, free: 2.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001956/0.0231, allocations: 71.25 kB / 272.6 MB, free: 2.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008626/0.02396, allocations: 293.7 kB / 272.9 MB, free: 2.301 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003055/0.02701, allocations: 1.033 MB / 273.9 MB, free: 1.262 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003733/0.03075, allocations: 1.204 MB / 275.1 MB, free: 56 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.2329/0.2636, allocations: 2.731 MB / 277.9 MB, free: 3.359 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002182/0.2658, allocations: 0.7164 MB / 278.6 MB, free: 3.289 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004361/0.2702, allocations: 1.453 MB / 280 MB, free: 3.145 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002251/0.2724, allocations: 0.7946 MB / 280.8 MB, free: 3.055 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005038/0.2729, allocations: 99.62 kB / 280.9 MB, free: 3.055 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00126/0.2742, allocations: 269.1 kB / 281.2 MB, free: 3.051 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005237/0.2747, allocations: 332.1 kB / 281.5 MB, free: 2.992 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009203/0.2756, allocations: 367.6 kB / 281.9 MB, free: 2.941 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002635/0.2783, allocations: 1.062 MB / 282.9 MB, free: 2.824 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.235e-05/0.2783, allocations: 3.938 kB / 282.9 MB, free: 2.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.2783, allocations: 5.562 kB / 283 MB, free: 2.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.129e-05/0.2784, allocations: 1.406 kB / 283 MB, free: 2.82 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.004534/0.2829, allocations: 1.868 MB / 284.8 MB, free: 2.008 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/0.283, allocations: 14.38 kB / 284.8 MB, free: 2.004 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006335/0.2836, allocations: 208.5 kB / 285 MB, free: 1.992 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001696/0.2853, allocations: 0.748 MB / 285.8 MB, free: 1.672 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002202/0.2855, allocations: 296.7 kB / 286.1 MB, free: 1.418 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001596/0.2857, allocations: 97.72 kB / 286.2 MB, free: 1.418 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.2873, allocations: 1.36 MB / 287.5 MB, free: 0.543 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.347e-05/0.2873, allocations: 7.219 kB / 287.5 MB, free: 0.543 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.223e-05/0.2874, allocations: 48.78 kB / 287.6 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.168e-05/0.2875, allocations: 60.09 kB / 287.6 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007215/0.2882, allocations: 431.2 kB / 288.1 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00528/0.2935, allocations: 5.121 MB / 293.2 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008525/0.2944, allocations: 449.8 kB / 293.6 MB, free: 12.85 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002056/0.2946, allocations: 156.6 kB / 293.8 MB, free: 12.84 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001341/0.2959, allocations: 0.786 MB / 294.6 MB, free: 12.53 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/0.296, allocations: 47.73 kB / 294.6 MB, free: 12.49 MB / 282.7 MB Notification: Performance of pre-optimization done (n=78): time 3.657e-06/0.296, allocations: 1.469 kB / 294.6 MB, free: 12.49 MB / 282.7 MB Notification: Performance of matching and sorting (n=83): time 0.002962/0.2989, allocations: 1.423 MB / 296 MB, free: 12.13 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.299, allocations: 66.72 kB / 296.1 MB, free: 12.06 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007406/0.2997, allocations: 0.8258 MB / 296.9 MB, free: 11.86 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.192e-05/0.2998, allocations: 40.17 kB / 297 MB, free: 11.83 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003048/0.3001, allocations: 0.51 MB / 297.5 MB, free: 11.51 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002251/0.3003, allocations: 307.5 kB / 297.8 MB, free: 11.32 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002506/0.3005, allocations: 254 kB / 298 MB, free: 11.29 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.3007, allocations: 360.5 kB / 298.4 MB, free: 10.98 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/0.3009, allocations: 140.6 kB / 298.5 MB, free: 10.98 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005186/0.3014, allocations: 0.7397 MB / 299.3 MB, free: 10.21 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009677/0.3024, allocations: 1.062 MB / 300.3 MB, free: 9.152 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.057e-05/0.3024, allocations: 4 kB / 300.3 MB, free: 9.148 MB / 282.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.001521/0.3039, allocations: 0.8818 MB / 301.2 MB, free: 8.555 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.964e-05/0.3039, allocations: 17.92 kB / 301.2 MB, free: 8.539 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.304, allocations: 16 kB / 301.2 MB, free: 8.523 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005968/0.3045, allocations: 273.3 kB / 301.5 MB, free: 8.324 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006994/0.3052, allocations: 335.1 kB / 301.8 MB, free: 8.078 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002328/0.3076, allocations: 3.508 MB / 305.3 MB, free: 4.516 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007346/0.3083, allocations: 52.36 kB / 305.4 MB, free: 4.484 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.557e-05/0.3084, allocations: 56.36 kB / 305.4 MB, free: 4.441 MB / 282.7 MB Warning: Assuming fixed start value for the following 3 variables: 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 20 (tank.inFlow[3],tank.inFlow[2],tank.inFlow[1],tank.regularFlow[3],tank.regularFlow[2],tank.regularFlow[1],PI_Valve.TS_in,PI_Level.TS_in,PI_Valve.satLOW_in,PI_Valve.satHIGH_in,PI_Valve.ATreq_in,sub.Yfp,sub.U2fp,sub.U1fp,div.Yfp,div.U2fp,div.U1fp,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 (155): * Single equations (assignments): 152 * 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.0005506/0.3089, allocations: 225.3 kB / 305.7 MB, free: 4.27 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.3091, allocations: 99.09 kB / 305.8 MB, free: 4.184 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00114/0.3102, allocations: 0.8321 MB / 306.6 MB, free: 3.504 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.3102, allocations: 11.94 kB / 306.6 MB, free: 3.492 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.3102, allocations: 4 kB / 306.6 MB, free: 3.488 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.3103, allocations: 7.969 kB / 306.6 MB, free: 3.48 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001706/0.312, allocations: 1.176 MB / 307.8 MB, free: 2.449 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.383e-05/0.312, allocations: 4.75 kB / 307.8 MB, free: 2.445 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000491/0.3125, allocations: 186.9 kB / 308 MB, free: 2.277 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002733/0.3127, allocations: 149.5 kB / 308.1 MB, free: 2.145 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005381/0.3133, allocations: 242.7 kB / 308.4 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.659e-05/0.3133, allocations: 26.45 kB / 308.4 MB, free: 1.914 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002583/0.3159, allocations: 3.509 MB / 311.9 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3159, allocations: 0 / 311.9 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.317, allocations: 0.89 MB / 312.8 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/0.3171, allocations: 27.17 kB / 312.8 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002925/0.3174, allocations: 23.44 kB / 312.8 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/0.3175, allocations: 83.88 kB / 312.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.332e-05/0.3176, allocations: 23.61 kB / 312.9 MB, free: 13.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003459/0.3179, allocations: 366.5 kB / 313.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3179, allocations: 0 / 313.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001374/0.3193, allocations: 321 kB / 313.6 MB, free: 12.73 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (PI_Level.Iaction,PI_Level.Fder,tank.level,tank.medium.T,actuator.y,PI_Valve.Iaction,PI_Valve.Fder) * Number of discrete variables: 6 (tank.regularFlow[1],tank.regularFlow[2],tank.regularFlow[3],tank.inFlow[1],tank.inFlow[2],tank.inFlow[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,9), (2,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003946/0.3197, allocations: 182.1 kB / 313.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.321, allocations: 0.8489 MB / 314.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.895e-05/0.321, allocations: 25.75 kB / 314.7 MB, free: 11.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006035/0.3216, allocations: 0.5292 MB / 315.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/0.3229, allocations: 0.547 MB / 315.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.3339, allocations: 2.041 MB / 317.8 MB, free: 8.664 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.3341, allocations: 250.8 kB / 318 MB, free: 8.395 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0009651/0.3351, allocations: 203 kB / 318.2 MB, free: 8.211 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007429/0.3358, allocations: 415 kB / 318.6 MB, free: 7.812 MB / 298.7 MB Notification: Performance of SimCode: time 2.174e-06/0.3358, allocations: 0 / 318.6 MB, free: 7.812 MB / 298.7 MB Notification: Performance of Templates: time 0.03386/0.3697, allocations: 22.28 MB / 340.9 MB, free: 2.027 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.makefile [Timeout 660] (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.sim & ./IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl -abortSlowSimulation -alarm=240 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.140109219588339]