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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001644/0.001644, allocations: 110 kB / 18.94 MB, free: 2.809 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001654/0.001654, allocations: 193.7 kB / 22.23 MB, free: 5.215 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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.06347/0.06347, allocations: 11.34 MB / 317.6 MB, free: 13.78 MB / 254.1 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.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=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 0.002053/0.002053, allocations: 75.88 kB / 444.2 MB, free: 5.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1383, allocations: 54.87 MB / 499.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.02664/0.1649, allocations: 22.32 MB / 0.5092 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01176/0.1767, allocations: 6.615 MB / 0.5157 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001557/0.1782, allocations: 51.5 kB / 0.5157 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001363/0.1796, allocations: 417.2 kB / 0.5161 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2705/0.4501, allocations: 1.108 MB / 0.5172 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003568/0.4536, allocations: 1.221 MB / 0.5184 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003525/0.4572, allocations: 2.466 MB / 0.5208 GB, free: 6.477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00118/0.4583, allocations: 0.6255 MB / 0.5214 GB, free: 6.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0022/0.4605, allocations: 1.031 MB / 0.5224 GB, free: 6.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001555/0.4621, allocations: 0.8978 MB / 0.5233 GB, free: 6.297 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002328/0.4623, allocations: 92.25 kB / 0.5234 GB, free: 6.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001439/0.4638, allocations: 0.5078 MB / 0.5239 GB, free: 6.297 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004585/0.4642, allocations: 377 kB / 0.5242 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008023/0.465, allocations: 0.5865 MB / 0.5248 GB, free: 6.082 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003045/0.4681, allocations: 1.604 MB / 0.5264 GB, free: 5.848 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.4681, allocations: 0 / 0.5264 GB, free: 5.848 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4681, allocations: 9.312 kB / 0.5264 GB, free: 5.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.856e-05/0.4681, allocations: 0 / 0.5264 GB, free: 5.84 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.003887/0.472, allocations: 1.442 MB / 0.5278 GB, free: 5.129 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.472, allocations: 9.766 kB / 0.5278 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005438/0.4726, allocations: 145.7 kB / 0.5279 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001478/0.4741, allocations: 0.694 MB / 0.5286 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000267/0.4743, allocations: 218.1 kB / 0.5288 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001721/0.4745, allocations: 80.91 kB / 0.5289 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002281/0.4768, allocations: 1.278 MB / 0.5302 GB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/0.4768, allocations: 11.97 kB / 0.5302 GB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/0.4769, allocations: 36.44 kB / 0.5302 GB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-05/0.477, allocations: 50.55 kB / 0.5303 GB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00228/0.4793, allocations: 1.004 MB / 0.5312 GB, free: 4.285 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.007556/0.4868, allocations: 5.982 MB / 0.5371 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001382/0.4882, allocations: 0.6787 MB / 0.5377 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006362/0.4889, allocations: 369 kB / 0.5381 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00205/0.4909, allocations: 1.121 MB / 0.5392 GB, free: 236 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001175/0.4921, allocations: 0.5375 MB / 0.5397 GB, free: 132 kB / 382.1 MB Notification: Performance of pre-optimization done (n=71): time 2.475e-06/0.4921, allocations: 0 / 0.5397 GB, free: 132 kB / 382.1 MB Notification: Performance of matching and sorting (n=76): time 0.007311/0.4994, allocations: 2.688 MB / 0.5423 GB, free: 15.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001675/0.4996, allocations: 249.2 kB / 0.5426 GB, free: 15.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/0.5008, allocations: 0.8305 MB / 0.5434 GB, free: 15.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.566e-05/0.5009, allocations: 44.3 kB / 0.5434 GB, free: 15.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004118/0.5013, allocations: 0.5383 MB / 0.544 GB, free: 14.92 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002523/0.5016, allocations: 268.9 kB / 0.5442 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003415/0.5019, allocations: 242.8 kB / 0.5444 GB, free: 14.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.5021, allocations: 355.7 kB / 0.5448 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007204/0.5028, allocations: 396.4 kB / 0.5452 GB, free: 14.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.504, allocations: 0.8982 MB / 0.546 GB, free: 13.79 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01219/0.5162, allocations: 2.865 MB / 0.5488 GB, free: 12.38 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.757e-05/0.5163, allocations: 9.25 kB / 0.5488 GB, free: 12.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003837/0.5201, allocations: 1.564 MB / 0.5504 GB, free: 11.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.006e-05/0.5201, allocations: 11.47 kB / 0.5504 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.119e-05/0.5201, allocations: 18.38 kB / 0.5504 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009272/0.5211, allocations: 368.7 kB / 0.5507 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008512/0.5219, allocations: 250.8 kB / 0.551 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004562/0.5265, allocations: 4.102 MB / 0.555 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.5278, allocations: 61.58 kB / 0.5551 GB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.528, allocations: 63.05 kB / 0.5551 GB, free: 7.605 MB / 398.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.0009203/0.5289, allocations: 346.8 kB / 0.5554 GB, free: 7.371 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002172/0.5291, allocations: 110.5 kB / 0.5555 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003202/0.5323, allocations: 1.449 MB / 0.557 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/0.5323, allocations: 15.5 kB / 0.557 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.5323, allocations: 2.75 kB / 0.557 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.632e-05/0.5323, allocations: 3.984 kB / 0.557 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004613/0.5369, allocations: 2.289 MB / 0.5592 GB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.537, allocations: 2.375 kB / 0.5592 GB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000534/0.5375, allocations: 128.1 kB / 0.5593 GB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007947/0.5383, allocations: 347.9 kB / 0.5597 GB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.403e-05/0.5383, allocations: 23.98 kB / 0.5597 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003911/0.5423, allocations: 4.091 MB / 0.5637 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/0.5423, allocations: 8 kB / 0.5637 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003933/0.5462, allocations: 1.846 MB / 0.5655 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007663/0.547, allocations: 195.2 kB / 0.5657 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001789/0.5471, allocations: 23.98 kB / 0.5657 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007033/0.5478, allocations: 43.33 kB / 0.5658 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/0.5481, allocations: 103.8 kB / 0.5659 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.277e-05/0.5482, allocations: 35.97 kB / 0.5659 GB, free: 14.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009169/0.5491, allocations: 0.5744 MB / 0.5664 GB, free: 13.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5491, allocations: 0 / 0.5664 GB, free: 13.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001717/0.5508, allocations: 347.7 kB / 0.5668 GB, free: 13.2 MB / 414.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.0008487/0.5516, allocations: 292.6 kB / 0.5671 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002847/0.5545, allocations: 1.286 MB / 0.5683 GB, free: 11.67 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.5545, allocations: 4 kB / 0.5683 GB, free: 11.67 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.5559, allocations: 0.7506 MB / 0.5691 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0023/0.5582, allocations: 467.4 kB / 0.5695 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003986/0.5622, allocations: 2.082 MB / 0.5715 GB, free: 8.363 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007937/0.563, allocations: 1.078 MB / 0.5726 GB, free: 7.258 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001034/0.564, allocations: 301 kB / 0.5729 GB, free: 6.977 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002401/0.5643, allocations: 99.41 kB / 0.573 GB, free: 6.879 MB / 414.1 MB Notification: Performance of SimCode: time 1.583e-06/0.5643, allocations: 0 / 0.573 GB, free: 6.879 MB / 414.1 MB Notification: Performance of Templates: time 0.04489/0.6091, allocations: 23.47 MB / 0.5959 GB, free: 15.74 MB / 446.1 MB " [Timeout remaining time 659] 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] [Calling os._exit(0), Time elapsed: 6.204519931226969] Failed to read output from testmodel.py, exit status != 0: 0.6178193455561996 0.6334294020000001 0.16202749100000002 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f1b125497b0>