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.001386/0.001386, allocations: 80.81 kB / 19.94 MB, free: 4.547 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.001622/0.001622, allocations: 177 kB / 23.36 MB, free: 1.133 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.106/1.106, allocations: 177.1 MB / 203.8 MB, free: 5.461 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.03718/0.03718, allocations: 8.615 MB / 268.9 MB, free: 4.785 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 / 289.3 MB, free: 376 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.354e-05/2.51e-05, allocations: 5.969 kB / 289.3 MB, free: 372 kB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.1723/0.1723, allocations: 9.724 MB / 299 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008967/0.1813, allocations: 3.781 MB / 302.8 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001535/0.1828, allocations: 52.19 kB / 302.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001099/0.1839, allocations: 264.2 kB / 303.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003378/0.1873, allocations: 0.9787 MB / 304.1 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003701/0.191, allocations: 1.08 MB / 305.1 MB, free: 9.598 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004057/0.1951, allocations: 2.512 MB / 307.7 MB, free: 8.129 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001489/0.1965, allocations: 0.681 MB / 308.3 MB, free: 7.609 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003221/0.1998, allocations: 1.275 MB / 309.6 MB, free: 6.855 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001997/0.2018, allocations: 0.7302 MB / 310.3 MB, free: 6.457 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004536/0.2022, allocations: 91.5 kB / 310.4 MB, free: 6.457 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001348/0.2036, allocations: 311.7 kB / 310.7 MB, free: 6.344 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005959/0.2042, allocations: 391.4 kB / 311.1 MB, free: 6.066 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009417/0.2051, allocations: 429.5 kB / 311.5 MB, free: 5.852 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002625/0.2077, allocations: 1.158 MB / 312.7 MB, free: 4.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.2077, allocations: 0 / 312.7 MB, free: 4.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2077, allocations: 0 / 312.7 MB, free: 4.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.899e-05/0.2078, allocations: 0 / 312.7 MB, free: 4.73 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.003207/0.211, allocations: 1.363 MB / 314.1 MB, free: 3.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.211, allocations: 8.031 kB / 314.1 MB, free: 3.332 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005406/0.2116, allocations: 196.5 kB / 314.3 MB, free: 3.141 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001406/0.213, allocations: 0.6252 MB / 314.9 MB, free: 2.484 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002458/0.2132, allocations: 347.5 kB / 315.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.2134, allocations: 84.38 kB / 315.3 MB, free: 2.004 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.2148, allocations: 1.358 MB / 316.7 MB, free: 424 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.324e-05/0.2148, allocations: 8.062 kB / 316.7 MB, free: 416 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.952e-05/0.2149, allocations: 39.94 kB / 316.7 MB, free: 376 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.802e-05/0.215, allocations: 49.98 kB / 316.8 MB, free: 328 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008071/0.2158, allocations: 395 kB / 317.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00574/0.2216, allocations: 4.185 MB / 321.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007881/0.2223, allocations: 386.8 kB / 321.7 MB, free: 11.22 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000266/0.2226, allocations: 136.6 kB / 321.8 MB, free: 11.09 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001713/0.2243, allocations: 0.7497 MB / 322.6 MB, free: 10.32 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006867/0.225, allocations: 0.6588 MB / 323.3 MB, free: 9.555 MB / 282.7 MB Notification: Performance of pre-optimization done (n=71): time 3.887e-06/0.225, allocations: 0 / 323.3 MB, free: 9.555 MB / 282.7 MB Notification: Performance of matching and sorting (n=76): time 0.00436/0.2294, allocations: 1.401 MB / 324.7 MB, free: 8.113 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.2295, allocations: 248 kB / 324.9 MB, free: 7.816 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008458/0.2303, allocations: 0.7195 MB / 325.6 MB, free: 7.082 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.339e-05/0.2304, allocations: 37.7 kB / 325.7 MB, free: 7.039 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003289/0.2307, allocations: 473.4 kB / 326.1 MB, free: 6.566 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002504/0.231, allocations: 273.7 kB / 326.4 MB, free: 6.297 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003368/0.2313, allocations: 234.7 kB / 326.6 MB, free: 6.062 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.2315, allocations: 418.5 kB / 327 MB, free: 5.645 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002991/0.2318, allocations: 125.4 kB / 327.1 MB, free: 5.52 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006708/0.2325, allocations: 0.8084 MB / 328 MB, free: 4.426 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001174/0.2336, allocations: 0.9975 MB / 328.9 MB, free: 3.191 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/0.2337, allocations: 8 kB / 329 MB, free: 3.184 MB / 282.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.001183/0.2348, allocations: 0.8582 MB / 329.8 MB, free: 2.309 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.2349, allocations: 12 kB / 329.8 MB, free: 2.297 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.2349, allocations: 19.98 kB / 329.8 MB, free: 2.277 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004296/0.2353, allocations: 237 kB / 330.1 MB, free: 2.039 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004747/0.2358, allocations: 256.2 kB / 330.3 MB, free: 1.789 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001864/0.2376, allocations: 3.514 MB / 333.8 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004698/0.2381, allocations: 58.03 kB / 333.9 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-05/0.2382, allocations: 55.98 kB / 334 MB, free: 13.96 MB / 298.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.0003806/0.2386, allocations: 236.8 kB / 334.2 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.2387, allocations: 87.91 kB / 334.3 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001025/0.2397, allocations: 0.8023 MB / 335.1 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.2397, allocations: 12 kB / 335.1 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.2397, allocations: 0 / 335.1 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.2397, allocations: 3.984 kB / 335.1 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.2411, allocations: 1.125 MB / 336.2 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.2411, allocations: 4 kB / 336.2 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002577/0.2414, allocations: 115.8 kB / 336.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003469/0.2417, allocations: 232.4 kB / 336.6 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/0.2418, allocations: 23.17 kB / 336.6 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/0.2434, allocations: 3.51 MB / 340.1 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2434, allocations: 128 / 340.1 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.2444, allocations: 0.8769 MB / 341 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002106/0.2446, allocations: 135.2 kB / 341.1 MB, free: 6.461 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.304e-05/0.2447, allocations: 20 kB / 341.1 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/0.245, allocations: 35.97 kB / 341.2 MB, free: 6.406 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.2451, allocations: 80.39 kB / 341.2 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-05/0.2451, allocations: 24.05 kB / 341.3 MB, free: 6.305 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002896/0.2454, allocations: 316.5 kB / 341.6 MB, free: 5.996 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2454, allocations: 0 / 341.6 MB, free: 5.996 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007758/0.2462, allocations: 319.8 kB / 341.9 MB, free: 5.684 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.0003042/0.2465, allocations: 211.9 kB / 342.1 MB, free: 5.469 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008467/0.2473, allocations: 0.8061 MB / 342.9 MB, free: 4.637 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.3e-05/0.2473, allocations: 13.81 kB / 342.9 MB, free: 4.621 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005432/0.2479, allocations: 0.4928 MB / 343.4 MB, free: 4.102 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009308/0.2488, allocations: 441.9 kB / 343.8 MB, free: 3.703 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.2509, allocations: 1.736 MB / 345.6 MB, free: 1.918 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001445/0.251, allocations: 230 kB / 345.8 MB, free: 1.672 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003785/0.2514, allocations: 185.9 kB / 346 MB, free: 1.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006398/0.252, allocations: 398.9 kB / 346.4 MB, free: 1.109 MB / 298.7 MB Notification: Performance of SimCode: time 1.904e-06/0.252, allocations: 0 / 346.4 MB, free: 1.109 MB / 298.7 MB Notification: Performance of Templates: time 0.02363/0.2757, allocations: 21.72 MB / 368.1 MB, free: 11.77 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 sys.exit(0), Time elapsed: 22.033763685729355]