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.00103/0.00103, allocations: 81.08 kB / 19.87 MB, free: 4.621 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.001149/0.001149, allocations: 169 kB / 23.27 MB, free: 1.223 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.079/1.079, allocations: 177.1 MB / 203.7 MB, free: 5.488 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.03783/0.03783, allocations: 8.614 MB / 268.9 MB, free: 4.746 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.773e-06/1.773e-06, allocations: 0 / 342.5 MB, free: 7.93 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.894e-05/3.072e-05, allocations: 4.984 kB / 342.5 MB, free: 7.926 MB / 314.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.01131/0.01134, allocations: 9.691 MB / 352.2 MB, free: 14.19 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005896/0.01724, allocations: 3.702 MB / 355.9 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001099/0.01834, allocations: 51.5 kB / 356 MB, free: 10.43 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000766/0.01911, allocations: 273.9 kB / 356.2 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00201/0.02112, allocations: 0.9745 MB / 357.2 MB, free: 9.176 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002336/0.02345, allocations: 1.083 MB / 358.3 MB, free: 8.09 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003763/0.02722, allocations: 2.521 MB / 360.8 MB, free: 5.562 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001213/0.02843, allocations: 0.6629 MB / 361.5 MB, free: 4.883 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002325/0.03075, allocations: 1.274 MB / 362.8 MB, free: 3.605 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001235/0.03199, allocations: 0.779 MB / 363.5 MB, free: 2.824 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002885/0.03228, allocations: 96 kB / 363.6 MB, free: 2.73 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007984/0.03307, allocations: 299.6 kB / 363.9 MB, free: 2.438 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003187/0.03339, allocations: 394.7 kB / 364.3 MB, free: 2.051 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004664/0.03386, allocations: 423 kB / 364.7 MB, free: 1.637 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001819/0.03568, allocations: 1.16 MB / 365.9 MB, free: 484 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.03568, allocations: 0 / 365.9 MB, free: 484 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.03568, allocations: 0 / 365.9 MB, free: 484 kB / 330.7 MB Notification: Performance of Transformations before backend: time 4.222e-05/0.03573, allocations: 0 / 365.9 MB, free: 484 kB / 330.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.002327/0.03805, allocations: 1.512 MB / 367.4 MB, free: 14.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.03811, allocations: 12.03 kB / 367.4 MB, free: 14.9 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000489/0.03859, allocations: 227.9 kB / 367.6 MB, free: 14.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009609/0.03956, allocations: 0.6994 MB / 368.3 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002311/0.03979, allocations: 347.5 kB / 368.7 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.03989, allocations: 88.31 kB / 368.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.04107, allocations: 1.427 MB / 370.2 MB, free: 11.78 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/0.0411, allocations: 16.08 kB / 370.2 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.809e-05/0.04118, allocations: 51.91 kB / 370.2 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.845e-05/0.04124, allocations: 49.98 kB / 370.3 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006148/0.04185, allocations: 409.2 kB / 370.7 MB, free: 11.26 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004175/0.04603, allocations: 5.924 MB / 376.6 MB, free: 5.145 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004993/0.04653, allocations: 378 kB / 377 MB, free: 4.762 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.04669, allocations: 149.5 kB / 377.1 MB, free: 4.613 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001055/0.04774, allocations: 0.9029 MB / 378 MB, free: 3.699 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004765/0.04822, allocations: 0.6832 MB / 378.7 MB, free: 2.902 MB / 346.7 MB Notification: Performance of pre-optimization done (n=71): time 2.765e-06/0.04822, allocations: 0 / 378.7 MB, free: 2.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=76): time 0.002571/0.05079, allocations: 1.521 MB / 380.2 MB, free: 1.332 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.836e-05/0.05089, allocations: 251.9 kB / 380.5 MB, free: 1.031 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005341/0.05143, allocations: 0.7795 MB / 381.3 MB, free: 240 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.71e-05/0.05148, allocations: 45.7 kB / 381.3 MB, free: 188 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003388/0.05182, allocations: 0.6036 MB / 381.9 MB, free: 15.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001721/0.052, allocations: 277.7 kB / 382.2 MB, free: 15.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002347/0.05223, allocations: 256.3 kB / 382.4 MB, free: 15.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.05244, allocations: 0.5975 MB / 383 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.05264, allocations: 130.5 kB / 383.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006188/0.05326, allocations: 1.054 MB / 384.2 MB, free: 12.87 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009902/0.05425, allocations: 1.192 MB / 385.4 MB, free: 11.36 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/0.05426, allocations: 8 kB / 385.4 MB, free: 11.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.001292/0.05555, allocations: 1.047 MB / 386.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.05557, allocations: 12 kB / 386.5 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.05559, allocations: 19.94 kB / 386.5 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004057/0.056, allocations: 250.9 kB / 386.7 MB, free: 10 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004619/0.05646, allocations: 255.6 kB / 387 MB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002217/0.05868, allocations: 4.852 MB / 391.8 MB, free: 4.641 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004428/0.05912, allocations: 51.94 kB / 391.9 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.658e-05/0.05918, allocations: 55.98 kB / 391.9 MB, free: 4.535 MB / 362.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.0003493/0.05953, allocations: 280.1 kB / 392.2 MB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.05967, allocations: 139.3 kB / 392.4 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.06085, allocations: 0.9338 MB / 393.3 MB, free: 3.152 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.06086, allocations: 16.02 kB / 393.3 MB, free: 3.137 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.06086, allocations: 7.938 kB / 393.3 MB, free: 3.129 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.557e-06/0.06087, allocations: 3.984 kB / 393.3 MB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.06259, allocations: 1.391 MB / 394.7 MB, free: 1.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.0626, allocations: 3.984 kB / 394.7 MB, free: 1.656 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002669/0.06287, allocations: 119.8 kB / 394.8 MB, free: 1.539 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003423/0.06321, allocations: 223.1 kB / 395 MB, free: 1.309 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.83e-05/0.06326, allocations: 23.92 kB / 395.1 MB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002209/0.06547, allocations: 4.822 MB / 399.9 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.06547, allocations: 0 / 399.9 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001221/0.06669, allocations: 1.066 MB / 401 MB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002405/0.06693, allocations: 183.2 kB / 401.1 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.802e-05/0.06701, allocations: 23.94 kB / 401.2 MB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002576/0.06726, allocations: 31.98 kB / 401.2 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.06739, allocations: 76.45 kB / 401.3 MB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.726e-05/0.06744, allocations: 31.97 kB / 401.3 MB, free: 10.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003/0.06774, allocations: 438.8 kB / 401.7 MB, free: 10.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06774, allocations: 0 / 401.7 MB, free: 10.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009286/0.06867, allocations: 323.8 kB / 402 MB, free: 10 MB / 378.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.0003219/0.06899, allocations: 231.8 kB / 402.3 MB, free: 9.766 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.07002, allocations: 0.9561 MB / 403.2 MB, free: 8.773 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.07003, allocations: 4 kB / 403.2 MB, free: 8.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005365/0.07056, allocations: 0.6224 MB / 403.8 MB, free: 8.109 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.07158, allocations: 436.5 kB / 404.3 MB, free: 7.699 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/0.07396, allocations: 1.766 MB / 406 MB, free: 5.871 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001642/0.07412, allocations: 234 kB / 406.3 MB, free: 5.621 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004911/0.07461, allocations: 192.2 kB / 406.5 MB, free: 5.434 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007008/0.07531, allocations: 469.8 kB / 406.9 MB, free: 4.973 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.07531, allocations: 4 kB / 406.9 MB, free: 4.969 MB / 378.7 MB Notification: Performance of Templates: time 0.02591/0.1012, allocations: 21.81 MB / 428.7 MB, free: 15.52 MB / 410.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: 20.348614128306508]