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.00136/0.00136, allocations: 79.73 kB / 19.76 MB, free: 1.871 MB / 14.72 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.001659/0.001659, allocations: 156.1 kB / 23 MB, free: 4.602 MB / 14.72 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.518/1.518, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.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.06365/0.06365, allocations: 8.614 MB / 268.4 MB, free: 8.555 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.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: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002411/0.002411, allocations: 67.91 kB / 397.3 MB, free: 6.699 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1222, allocations: 56.05 MB / 453.4 MB, free: 14.54 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.02797/0.1501, allocations: 20.36 MB / 473.7 MB, free: 10.09 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01084/0.161, allocations: 6.072 MB / 479.8 MB, free: 4 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001253/0.1622, allocations: 55.5 kB / 479.8 MB, free: 3.945 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001227/0.1634, allocations: 389.3 kB / 480.2 MB, free: 3.562 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00309/0.1665, allocations: 1.123 MB / 481.4 MB, free: 2.434 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003429/0.17, allocations: 1.209 MB / 482.6 MB, free: 1.23 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.2793/0.4492, allocations: 2.464 MB / 485 MB, free: 42.04 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001283/0.4505, allocations: 0.6096 MB / 485.6 MB, free: 42.01 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002183/0.4527, allocations: 1.044 MB / 486.7 MB, free: 42.01 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001293/0.454, allocations: 0.8685 MB / 487.5 MB, free: 41.91 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000172/0.4542, allocations: 93.91 kB / 487.6 MB, free: 41.91 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001175/0.4553, allocations: 451.9 kB / 488.1 MB, free: 41.91 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003264/0.4557, allocations: 374.1 kB / 488.4 MB, free: 41.86 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004952/0.4562, allocations: 0.492 MB / 488.9 MB, free: 41.73 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001859/0.458, allocations: 1.618 MB / 490.6 MB, free: 41.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.458, allocations: 0 / 490.6 MB, free: 41.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.458, allocations: 0 / 490.6 MB, free: 41.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.499e-05/0.458, allocations: 0 / 490.6 MB, free: 41.5 MB / 446.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.002833/0.4609, allocations: 1.447 MB / 492 MB, free: 40.8 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.4609, allocations: 10 kB / 492 MB, free: 40.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004143/0.4613, allocations: 152.7 kB / 492.2 MB, free: 40.73 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/0.4625, allocations: 0.6911 MB / 492.9 MB, free: 40.47 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002266/0.4627, allocations: 344.1 kB / 493.2 MB, free: 40.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.4628, allocations: 80.72 kB / 493.3 MB, free: 40.16 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00188/0.4647, allocations: 1.76 MB / 495 MB, free: 39.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.885e-05/0.4647, allocations: 2.5 kB / 495 MB, free: 39.25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-05/0.4648, allocations: 41.34 kB / 495.1 MB, free: 39.25 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-05/0.4649, allocations: 54.28 kB / 495.1 MB, free: 39.25 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/0.4665, allocations: 0.993 MB / 496.1 MB, free: 39.23 MB / 446.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.00523/0.4717, allocations: 5.04 MB / 0.4894 GB, free: 36.38 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.4729, allocations: 0.6802 MB / 0.4901 GB, free: 36.36 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005441/0.4735, allocations: 372.3 kB / 0.4904 GB, free: 36.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001667/0.4752, allocations: 0.9892 MB / 0.4914 GB, free: 36.05 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008952/0.4761, allocations: 0.8588 MB / 0.4922 GB, free: 35.55 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.765e-06/0.4761, allocations: 6.938 kB / 0.4922 GB, free: 35.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=76): time 0.005967/0.482, allocations: 2.678 MB / 0.4949 GB, free: 35.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.4821, allocations: 252.4 kB / 0.4951 GB, free: 34.81 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009001/0.483, allocations: 0.7916 MB / 0.4959 GB, free: 34.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.883e-05/0.4831, allocations: 45.64 kB / 0.4959 GB, free: 34.61 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003199/0.4834, allocations: 0.5464 MB / 0.4964 GB, free: 34.31 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.4836, allocations: 268.6 kB / 0.4967 GB, free: 34.15 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002882/0.4839, allocations: 240.9 kB / 0.4969 GB, free: 34.12 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.484, allocations: 405.3 kB / 0.4973 GB, free: 33.81 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006902/0.4847, allocations: 396.7 kB / 0.4977 GB, free: 33.81 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009364/0.4856, allocations: 1.073 MB / 0.4987 GB, free: 32.98 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009854/0.4955, allocations: 2.86 MB / 0.5015 GB, free: 32.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.216e-05/0.4955, allocations: 3.281 kB / 0.5015 GB, free: 32.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003115/0.4986, allocations: 1.565 MB / 0.5031 GB, free: 31.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.529e-05/0.4986, allocations: 12.31 kB / 0.5031 GB, free: 31.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.553e-05/0.4987, allocations: 15.34 kB / 0.5031 GB, free: 31.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00087/0.4995, allocations: 361.9 kB / 0.5034 GB, free: 31.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008118/0.5003, allocations: 256 kB / 0.5037 GB, free: 31.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002969/0.5033, allocations: 4.044 MB / 0.5076 GB, free: 28.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/0.5044, allocations: 64.55 kB / 0.5077 GB, free: 28.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.5045, allocations: 61.05 kB / 0.5078 GB, free: 28 MB / 446.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.0007277/0.5053, allocations: 342.2 kB / 0.5081 GB, free: 27.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001792/0.5054, allocations: 109.4 kB / 0.5082 GB, free: 27.74 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003123/0.5086, allocations: 1.428 MB / 0.5096 GB, free: 27.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.71e-05/0.5086, allocations: 17.41 kB / 0.5096 GB, free: 27.19 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.5086, allocations: 0 / 0.5096 GB, free: 27.19 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.5086, allocations: 6.891 kB / 0.5096 GB, free: 27.19 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0051/0.5137, allocations: 2.082 MB / 0.5116 GB, free: 26.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.5137, allocations: 2.219 kB / 0.5116 GB, free: 26.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006057/0.5143, allocations: 123.9 kB / 0.5118 GB, free: 26.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008548/0.5152, allocations: 344 kB / 0.5121 GB, free: 26.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.03e-05/0.5152, allocations: 28.39 kB / 0.5121 GB, free: 26.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003211/0.5185, allocations: 4.026 MB / 0.516 GB, free: 22.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.5185, allocations: 3.188 kB / 0.516 GB, free: 22.65 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003752/0.5222, allocations: 1.847 MB / 0.5178 GB, free: 21.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000623/0.5228, allocations: 193 kB / 0.518 GB, free: 21.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.523, allocations: 23.38 kB / 0.5181 GB, free: 21.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006141/0.5236, allocations: 42.39 kB / 0.5181 GB, free: 21.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002253/0.5238, allocations: 81.73 kB / 0.5182 GB, free: 21.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.42e-05/0.5239, allocations: 37.69 kB / 0.5182 GB, free: 21.67 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000718/0.5246, allocations: 0.5034 MB / 0.5187 GB, free: 21.47 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5246, allocations: 0 / 0.5187 GB, free: 21.47 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001703/0.5263, allocations: 351.3 kB / 0.519 GB, free: 21.41 MB / 446.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.0005607/0.5269, allocations: 290.7 kB / 0.5193 GB, free: 21.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00266/0.5295, allocations: 1.295 MB / 0.5206 GB, free: 20.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/0.5296, allocations: 2.094 kB / 0.5206 GB, free: 20.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001282/0.5308, allocations: 0.7418 MB / 0.5213 GB, free: 20.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002012/0.5328, allocations: 417.4 kB / 0.5217 GB, free: 20.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003368/0.5362, allocations: 2.052 MB / 0.5237 GB, free: 19.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005306/0.5367, allocations: 496.6 kB / 0.5242 GB, free: 19.05 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009985/0.5377, allocations: 285.1 kB / 0.5245 GB, free: 18.99 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002318/0.538, allocations: 92.81 kB / 0.5245 GB, free: 18.98 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.538, allocations: 0 / 0.5245 GB, free: 18.98 MB / 446.1 MB Notification: Performance of Templates: time 0.04005/0.578, allocations: 21.15 MB / 0.5452 GB, free: 13.77 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 -s ida -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 6.297908186097629] Failed to read output from testmodel.py, exit status != 0: 0.5878546090098098 0.598149724 0.137492211 Calling exit ...