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.001386/0.001386, allocations: 93.06 kB / 19.65 MB, free: 276 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.0009638/0.0009638, allocations: 169 kB / 23.02 MB, free: 1.547 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 0.9908/0.9908, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.05084/0.05084, allocations: 8.618 MB / 268.6 MB, free: 4.91 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 1.412e-06/1.412e-06, allocations: 0 / 342.1 MB, free: 7.141 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.631e-05/1.772e-05, allocations: 6.312 kB / 342.1 MB, free: 7.133 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.007032/0.00705, allocations: 10.23 MB / 352.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004707/0.01176, allocations: 3.996 MB / 356.3 MB, free: 8.848 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005635/0.01232, allocations: 75.25 kB / 356.4 MB, free: 8.773 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005414/0.01286, allocations: 297.6 kB / 356.7 MB, free: 8.48 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00143/0.01429, allocations: 1.025 MB / 357.7 MB, free: 7.449 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001873/0.01617, allocations: 1.22 MB / 358.9 MB, free: 6.227 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002321/0.01849, allocations: 2.725 MB / 361.7 MB, free: 3.488 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001041/0.01953, allocations: 0.7273 MB / 362.4 MB, free: 2.75 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001671/0.0212, allocations: 1.391 MB / 363.8 MB, free: 1.355 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009609/0.02216, allocations: 0.8335 MB / 364.6 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001623/0.02232, allocations: 96 kB / 364.7 MB, free: 436 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004756/0.0228, allocations: 263.6 kB / 365 MB, free: 172 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000284/0.02308, allocations: 414.6 kB / 365.4 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003705/0.02345, allocations: 462.8 kB / 365.8 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00115/0.0246, allocations: 1.187 MB / 367 MB, free: 14.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.0246, allocations: 0 / 367 MB, free: 14.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.02461, allocations: 4 kB / 367 MB, free: 14.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.751e-05/0.02462, allocations: 0 / 367 MB, free: 14.11 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.001871/0.02649, allocations: 1.663 MB / 368.7 MB, free: 12.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.02653, allocations: 12.03 kB / 368.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003689/0.0269, allocations: 255.8 kB / 368.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008969/0.02779, allocations: 0.8473 MB / 369.8 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001786/0.02797, allocations: 304.2 kB / 370.1 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.02808, allocations: 96.38 kB / 370.2 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.02944, allocations: 1.531 MB / 371.7 MB, free: 9.012 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.006e-05/0.02947, allocations: 8.125 kB / 371.7 MB, free: 9.004 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.209e-05/0.02955, allocations: 47.92 kB / 371.8 MB, free: 8.957 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.227e-05/0.02962, allocations: 53.98 kB / 371.8 MB, free: 8.906 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008405/0.03046, allocations: 0.542 MB / 372.4 MB, free: 8.359 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00438/0.03484, allocations: 7.309 MB / 379.7 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007777/0.03562, allocations: 490.2 kB / 380.2 MB, free: 328 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.0359, allocations: 216.1 kB / 380.4 MB, free: 112 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001054/0.03695, allocations: 0.9505 MB / 381.3 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.03698, allocations: 46.05 kB / 381.4 MB, free: 15.08 MB / 314.7 MB Notification: Performance of pre-optimization done (n=78): time 1.813e-06/0.03698, allocations: 0 / 381.4 MB, free: 15.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=83): time 0.003004/0.03999, allocations: 1.903 MB / 383.3 MB, free: 13.13 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.211e-05/0.04006, allocations: 145.5 kB / 383.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006901/0.04075, allocations: 0.8918 MB / 384.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.932e-05/0.0408, allocations: 41.7 kB / 384.3 MB, free: 12 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003663/0.04117, allocations: 0.6741 MB / 385 MB, free: 11.31 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.04135, allocations: 309.4 kB / 385.3 MB, free: 11.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/0.0416, allocations: 260.5 kB / 385.6 MB, free: 10.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.04177, allocations: 0.5316 MB / 386.1 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002887/0.04206, allocations: 191.2 kB / 386.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006706/0.04273, allocations: 1.02 MB / 387.3 MB, free: 8.645 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.04398, allocations: 1.371 MB / 388.7 MB, free: 6.945 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.04399, allocations: 8 kB / 388.7 MB, free: 6.938 MB / 314.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.001436/0.04542, allocations: 1.183 MB / 389.9 MB, free: 5.734 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/0.04545, allocations: 12 kB / 389.9 MB, free: 5.723 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/0.04547, allocations: 20 kB / 389.9 MB, free: 5.703 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005099/0.04598, allocations: 263.5 kB / 390.2 MB, free: 5.434 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000533/0.04651, allocations: 283.5 kB / 390.4 MB, free: 5.156 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002526/0.04904, allocations: 4.903 MB / 395.3 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.0494, allocations: 51.89 kB / 395.4 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.3e-05/0.04947, allocations: 71.98 kB / 395.5 MB, free: 15.86 MB / 330.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.0003258/0.0498, allocations: 265.8 kB / 395.7 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.04995, allocations: 151.3 kB / 395.9 MB, free: 15.44 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001459/0.05141, allocations: 1.077 MB / 396.9 MB, free: 14.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.05142, allocations: 15.98 kB / 397 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.05142, allocations: 0 / 397 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.05143, allocations: 3.984 kB / 397 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002004/0.05343, allocations: 1.671 MB / 398.6 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.05344, allocations: 4 kB / 398.6 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003812/0.05382, allocations: 164 kB / 398.8 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003715/0.05419, allocations: 238.8 kB / 399 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.138e-05/0.05424, allocations: 23.94 kB / 399.1 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002244/0.05649, allocations: 4.883 MB / 403.9 MB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.05649, allocations: 7.938 kB / 403.9 MB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.0579, allocations: 1.176 MB / 405.1 MB, free: 5.738 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/0.05816, allocations: 199 kB / 405.3 MB, free: 5.543 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.755e-05/0.05823, allocations: 16 kB / 405.3 MB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.05849, allocations: 27.98 kB / 405.4 MB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.05864, allocations: 88.78 kB / 405.4 MB, free: 5.414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.167e-05/0.05869, allocations: 39.97 kB / 405.5 MB, free: 5.375 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004289/0.05912, allocations: 0.5098 MB / 406 MB, free: 4.855 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05912, allocations: 7.938 kB / 406 MB, free: 4.848 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009167/0.06004, allocations: 319.9 kB / 406.3 MB, free: 4.535 MB / 330.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.0003734/0.06041, allocations: 199.1 kB / 406.5 MB, free: 4.332 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.0617, allocations: 1.088 MB / 407.6 MB, free: 3.211 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.06171, allocations: 4 kB / 407.6 MB, free: 3.207 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006165/0.06233, allocations: 0.6873 MB / 408.3 MB, free: 2.488 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.06343, allocations: 462.8 kB / 408.7 MB, free: 2.051 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1215/0.1849, allocations: 2.086 MB / 410.8 MB, free: 68.23 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004537/0.1854, allocations: 249.1 kB / 411.1 MB, free: 68.15 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001026/0.1864, allocations: 278 kB / 411.3 MB, free: 68.14 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002297/0.1866, allocations: 104.3 kB / 411.4 MB, free: 68.13 MB / 330.7 MB Notification: Performance of SimCode: time 3.116e-06/0.1866, allocations: 0 / 411.4 MB, free: 68.13 MB / 330.7 MB Notification: Performance of Templates: time 0.02155/0.2082, allocations: 21.23 MB / 432.7 MB, free: 56.96 MB / 330.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: 3.58916448475793]