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.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 90] 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Applications.ProcessControl.LevelControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl") translateModel(IndustrialControlSystems.Applications.ProcessControl.LevelControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007499/0.007499, allocations: 101.5 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 194.3 kB / 16.68 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.06352/0.06352, allocations: 11.19 MB / 301.7 MB, free: 4.059 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 61.08 kB / 419 MB, free: 17.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1101, allocations: 51.99 MB / 471 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.02497/0.1351, allocations: 21.93 MB / 492.9 MB, free: 7.512 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00993/0.1451, allocations: 6.571 MB / 499.5 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001067/0.1462, allocations: 35.75 kB / 499.5 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.1473, allocations: 405.2 kB / 499.9 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002631/0.15, allocations: 1.072 MB / 0.4892 GB, free: 15.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003045/0.1531, allocations: 1.197 MB / 0.4904 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003266/0.1563, allocations: 2.44 MB / 0.4928 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001143/0.1575, allocations: 0.7322 MB / 0.4935 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00192/0.1594, allocations: 0.9925 MB / 0.4945 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00145/0.1609, allocations: 0.8483 MB / 0.4953 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001999/0.1611, allocations: 95.98 kB / 0.4954 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001347/0.1625, allocations: 491.3 kB / 0.4959 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004323/0.1629, allocations: 362.9 kB / 0.4962 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007825/0.1637, allocations: 0.587 MB / 0.4968 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002349/0.1661, allocations: 1.6 MB / 0.4983 GB, free: 6.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.1661, allocations: 0 / 0.4983 GB, free: 6.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1661, allocations: 0 / 0.4983 GB, free: 6.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.459e-05/0.1661, allocations: 0 / 0.4983 GB, free: 6.051 MB / 382.1 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.003618/0.1697, allocations: 1.527 MB / 0.4998 GB, free: 4.465 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.1698, allocations: 8.031 kB / 0.4998 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005654/0.1704, allocations: 156.1 kB / 0.5 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001613/0.172, allocations: 0.7617 MB / 0.5007 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002701/0.1723, allocations: 223 kB / 0.5009 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.1724, allocations: 76.38 kB / 0.501 GB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002148/0.1746, allocations: 1.273 MB / 0.5023 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.744e-05/0.1746, allocations: 0 / 0.5023 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/0.1747, allocations: 47.97 kB / 0.5023 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.726e-05/0.1748, allocations: 49.92 kB / 0.5024 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00191/0.1767, allocations: 0.9951 MB / 0.5033 GB, free: 0.707 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.215/0.3918, allocations: 6.054 MB / 0.5092 GB, free: 39.85 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001345/0.3931, allocations: 0.719 MB / 0.5099 GB, free: 39.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006498/0.3938, allocations: 395.4 kB / 0.5103 GB, free: 39.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002281/0.3961, allocations: 2.251 MB / 0.5125 GB, free: 37.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001015/0.3971, allocations: 0.5477 MB / 0.513 GB, free: 37.63 MB / 382.1 MB Notification: Performance of pre-optimization done (n=71): time 2.154e-06/0.3971, allocations: 0 / 0.513 GB, free: 37.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=76): time 0.006513/0.4037, allocations: 2.997 MB / 0.516 GB, free: 36.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.063e-05/0.4038, allocations: 248.9 kB / 0.5162 GB, free: 35.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.405, allocations: 0.8311 MB / 0.517 GB, free: 35.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.271e-05/0.4051, allocations: 44.33 kB / 0.5171 GB, free: 35.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003681/0.4054, allocations: 0.5396 MB / 0.5176 GB, free: 35.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002021/0.4057, allocations: 267.7 kB / 0.5178 GB, free: 34.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004256/0.4061, allocations: 239.5 kB / 0.5181 GB, free: 34.81 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.4062, allocations: 352.8 kB / 0.5184 GB, free: 34.49 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.4073, allocations: 402.5 kB / 0.5188 GB, free: 34.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.4083, allocations: 0.897 MB / 0.5197 GB, free: 33.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01063/0.419, allocations: 2.862 MB / 0.5225 GB, free: 32.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.514e-05/0.419, allocations: 4.75 kB / 0.5225 GB, free: 32.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003558/0.4226, allocations: 1.565 MB / 0.524 GB, free: 31.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.055e-05/0.4226, allocations: 15.44 kB / 0.524 GB, free: 31.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.716e-05/0.4227, allocations: 18.28 kB / 0.524 GB, free: 31.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008627/0.4235, allocations: 367.3 kB / 0.5244 GB, free: 31.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008219/0.4244, allocations: 255.1 kB / 0.5246 GB, free: 31.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002727/0.4271, allocations: 4.299 MB / 0.5288 GB, free: 27.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.4282, allocations: 54.22 kB / 0.5289 GB, free: 27.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/0.4283, allocations: 66.86 kB / 0.5289 GB, free: 27.57 MB / 382.1 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: 72 * 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 (139): * Single equations (assignments): 136 * 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.0006103/0.4289, allocations: 347 kB / 0.5293 GB, free: 27.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.4291, allocations: 119 kB / 0.5294 GB, free: 27.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002782/0.4319, allocations: 1.442 MB / 0.5308 GB, free: 26.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-05/0.4319, allocations: 9.969 kB / 0.5308 GB, free: 26.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.4319, allocations: 3.938 kB / 0.5308 GB, free: 26.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.432, allocations: 3.984 kB / 0.5308 GB, free: 26.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003624/0.4356, allocations: 2.325 MB / 0.5331 GB, free: 24.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.4356, allocations: 0 / 0.5331 GB, free: 24.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005062/0.4361, allocations: 126.2 kB / 0.5332 GB, free: 24.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006777/0.4368, allocations: 351 kB / 0.5335 GB, free: 24.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.568e-05/0.4369, allocations: 23.89 kB / 0.5336 GB, free: 24.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002443/0.4393, allocations: 4.284 MB / 0.5377 GB, free: 20.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4394, allocations: 3.938 kB / 0.5377 GB, free: 20.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002981/0.4423, allocations: 1.858 MB / 0.5396 GB, free: 19.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004561/0.4428, allocations: 271.9 kB / 0.5398 GB, free: 19.35 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001604/0.443, allocations: 24.45 kB / 0.5398 GB, free: 19.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006561/0.4436, allocations: 49.95 kB / 0.5399 GB, free: 19.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/0.4438, allocations: 77.7 kB / 0.54 GB, free: 19.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.932e-05/0.4439, allocations: 43.91 kB / 0.54 GB, free: 19.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006297/0.4446, allocations: 0.5667 MB / 0.5406 GB, free: 18.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4446, allocations: 0 / 0.5406 GB, free: 18.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00129/0.4459, allocations: 359.7 kB / 0.5409 GB, free: 18.26 MB / 382.1 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 (72): * Single equations (assignments): 61 * 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.0006084/0.4465, allocations: 302.9 kB / 0.5412 GB, free: 17.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002201/0.4487, allocations: 1.325 MB / 0.5425 GB, free: 16.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.4487, allocations: 0 / 0.5425 GB, free: 16.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.4498, allocations: 0.779 MB / 0.5432 GB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002084/0.4519, allocations: 470.9 kB / 0.5437 GB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002868/0.4548, allocations: 2.054 MB / 0.5457 GB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004307/0.4552, allocations: 1.082 MB / 0.5468 GB, free: 12.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008382/0.4561, allocations: 300 kB / 0.547 GB, free: 11.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001925/0.4563, allocations: 99.36 kB / 0.5471 GB, free: 11.8 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4563, allocations: 0 / 0.5471 GB, free: 11.8 MB / 382.1 MB Notification: Performance of Templates: time 0.0366/0.4929, allocations: 22.52 MB / 0.5691 GB, free: 5.535 MB / 398.1 MB 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=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe 2>&1) [Timeout 480]