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.001336/0.001336, allocations: 93.06 kB / 19.65 MB, free: 272 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.001625/0.001625, allocations: 173 kB / 23.02 MB, free: 1.543 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.051/1.051, allocations: 177.1 MB / 203.4 MB, free: 5.621 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.04615/0.04615, allocations: 8.617 MB / 268.6 MB, free: 4.906 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.412e-06/1.412e-06, allocations: 0 / 342.1 MB, free: 7.16 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.36e-05/1.501e-05, allocations: 2.312 kB / 342.1 MB, free: 7.156 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.007454/0.007469, allocations: 9.765 MB / 351.9 MB, free: 13.35 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005255/0.01272, allocations: 3.726 MB / 355.6 MB, free: 9.609 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008719/0.0136, allocations: 51.5 kB / 355.6 MB, free: 9.559 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000698/0.01429, allocations: 273.9 kB / 355.9 MB, free: 9.289 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001797/0.01609, allocations: 0.9706 MB / 356.9 MB, free: 8.312 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002036/0.01813, allocations: 1.083 MB / 357.9 MB, free: 7.227 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00267/0.0208, allocations: 2.525 MB / 360.5 MB, free: 4.691 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009806/0.02178, allocations: 0.6513 MB / 361.1 MB, free: 4.02 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001734/0.02351, allocations: 1.278 MB / 362.4 MB, free: 2.738 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001093/0.0246, allocations: 0.7829 MB / 363.2 MB, free: 1.953 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002248/0.02483, allocations: 92 kB / 363.3 MB, free: 1.863 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007198/0.02555, allocations: 291.7 kB / 363.6 MB, free: 1.578 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003452/0.02589, allocations: 402.7 kB / 364 MB, free: 1.184 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004627/0.02636, allocations: 419 kB / 364.4 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002264/0.02862, allocations: 1.164 MB / 365.5 MB, free: 15.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.02863, allocations: 3.984 kB / 365.5 MB, free: 15.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.02863, allocations: 0 / 365.5 MB, free: 15.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.623e-05/0.02869, allocations: 0 / 365.5 MB, free: 15.6 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.002879/0.03157, allocations: 1.516 MB / 367 MB, free: 14.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.03161, allocations: 8.031 kB / 367.1 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004652/0.03208, allocations: 235.9 kB / 367.3 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009539/0.03303, allocations: 0.715 MB / 368 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002147/0.03324, allocations: 347.5 kB / 368.3 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.03336, allocations: 88.38 kB / 368.4 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.03466, allocations: 1.49 MB / 369.9 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.03468, allocations: 8.172 kB / 369.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-05/0.03476, allocations: 47.92 kB / 370 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-05/0.03483, allocations: 57.91 kB / 370 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007861/0.03562, allocations: 491.2 kB / 370.5 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00426/0.03988, allocations: 5.937 MB / 376.4 MB, free: 4.098 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006338/0.04051, allocations: 427.8 kB / 376.9 MB, free: 3.668 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002274/0.04074, allocations: 179.1 kB / 377 MB, free: 3.492 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00107/0.04181, allocations: 0.9055 MB / 377.9 MB, free: 2.566 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000529/0.04234, allocations: 0.7068 MB / 378.6 MB, free: 1.746 MB / 298.7 MB Notification: Performance of pre-optimization done (n=71): time 2.234e-06/0.04234, allocations: 0 / 378.6 MB, free: 1.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=76): time 0.003559/0.0459, allocations: 1.797 MB / 380.4 MB, free: 15.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.046, allocations: 251.9 kB / 380.7 MB, free: 15.59 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007624/0.04676, allocations: 0.7917 MB / 381.5 MB, free: 14.79 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.192e-05/0.04682, allocations: 45.7 kB / 381.5 MB, free: 14.74 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003653/0.04719, allocations: 0.596 MB / 382.1 MB, free: 14.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002/0.04739, allocations: 269.8 kB / 382.4 MB, free: 13.87 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002873/0.04768, allocations: 256.4 kB / 382.6 MB, free: 13.61 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002151/0.04789, allocations: 0.582 MB / 383.2 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003427/0.04823, allocations: 170.5 kB / 383.4 MB, free: 12.85 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007742/0.04901, allocations: 1.089 MB / 384.5 MB, free: 11.38 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001403/0.05041, allocations: 1.278 MB / 385.8 MB, free: 9.793 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/0.05042, allocations: 8 kB / 385.8 MB, free: 9.785 MB / 314.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002136/0.05256, allocations: 1.128 MB / 386.9 MB, free: 8.637 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.05258, allocations: 14.97 kB / 386.9 MB, free: 8.625 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.012e-05/0.0526, allocations: 16.84 kB / 386.9 MB, free: 8.609 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005719/0.05318, allocations: 266.8 kB / 387.2 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006479/0.05382, allocations: 259.6 kB / 387.4 MB, free: 8.082 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00275/0.05657, allocations: 4.898 MB / 392.3 MB, free: 2.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006503/0.05722, allocations: 55.94 kB / 392.4 MB, free: 2.855 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.409e-05/0.05732, allocations: 67.98 kB / 392.5 MB, free: 2.789 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: 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.0004551/0.05777, allocations: 283.4 kB / 392.7 MB, free: 2.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/0.05797, allocations: 127.3 kB / 392.9 MB, free: 2.375 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001975/0.05994, allocations: 1.012 MB / 393.9 MB, free: 1.336 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.05995, allocations: 8 kB / 393.9 MB, free: 1.328 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.05996, allocations: 0 / 393.9 MB, free: 1.328 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.05997, allocations: 8.016 kB / 393.9 MB, free: 1.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002519/0.06249, allocations: 1.578 MB / 395.5 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.06249, allocations: 4.188 kB / 395.5 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003883/0.06288, allocations: 119.8 kB / 395.6 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004713/0.06335, allocations: 234.9 kB / 395.8 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.734e-05/0.06341, allocations: 23.98 kB / 395.8 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002519/0.06593, allocations: 4.887 MB / 400.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.06593, allocations: 4 kB / 400.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002035/0.06797, allocations: 1.156 MB / 401.9 MB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003303/0.0683, allocations: 179.2 kB / 402.1 MB, free: 8.719 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.06841, allocations: 20 kB / 402.1 MB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00037/0.06878, allocations: 35.97 kB / 402.1 MB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001773/0.06896, allocations: 84.39 kB / 402.2 MB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.577e-05/0.06903, allocations: 43.97 kB / 402.2 MB, free: 8.539 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004732/0.0695, allocations: 466.9 kB / 402.7 MB, free: 8.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0695, allocations: 0 / 402.7 MB, free: 8.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00124/0.07074, allocations: 315.8 kB / 403 MB, free: 7.781 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.0004208/0.07116, allocations: 223.7 kB / 403.2 MB, free: 7.555 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.07269, allocations: 1.034 MB / 404.3 MB, free: 6.484 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.0727, allocations: 4.062 kB / 404.3 MB, free: 6.48 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007264/0.07342, allocations: 0.6569 MB / 404.9 MB, free: 5.785 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001376/0.0748, allocations: 444.5 kB / 405.3 MB, free: 5.363 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00301/0.07781, allocations: 1.758 MB / 407.1 MB, free: 3.543 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001969/0.07801, allocations: 222 kB / 407.3 MB, free: 3.305 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007328/0.07874, allocations: 270.7 kB / 407.6 MB, free: 3.043 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.07893, allocations: 104.3 kB / 407.7 MB, free: 2.941 MB / 330.7 MB Notification: Performance of SimCode: time 1.232e-06/0.07893, allocations: 0 / 407.7 MB, free: 2.941 MB / 330.7 MB Notification: Performance of Templates: time 0.165/0.2439, allocations: 21.64 MB / 429.3 MB, free: 59.86 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.73316632816568]