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.001447/0.001447, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001472/0.001472, allocations: 214.4 kB / 22.25 MB, free: 5.262 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.596/1.596, allocations: 230.6 MB / 256 MB, free: 7.785 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.0772/0.0772, allocations: 11.34 MB / 323.8 MB, free: 8.027 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.002104/0.002104, allocations: 63.91 kB / 452.7 MB, free: 8.566 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.137, allocations: 56.07 MB / 0.4968 GB, free: 404 kB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.3472/0.4842, allocations: 20.36 MB / 0.5167 GB, free: 9.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01059/0.4948, allocations: 6.079 MB / 0.5227 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001726/0.4965, allocations: 56.16 kB / 0.5227 GB, free: 8.941 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001519/0.498, allocations: 390.9 kB / 0.5231 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003785/0.5018, allocations: 1.115 MB / 0.5242 GB, free: 8.285 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004039/0.5058, allocations: 1.217 MB / 0.5254 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004688/0.5105, allocations: 2.456 MB / 0.5278 GB, free: 7.535 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001482/0.512, allocations: 0.6183 MB / 0.5284 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002863/0.5149, allocations: 1.05 MB / 0.5294 GB, free: 7.207 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001925/0.5168, allocations: 0.8608 MB / 0.5302 GB, free: 6.977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002398/0.517, allocations: 92.12 kB / 0.5303 GB, free: 6.977 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001804/0.5188, allocations: 453.5 kB / 0.5308 GB, free: 6.926 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005374/0.5194, allocations: 380.7 kB / 0.5311 GB, free: 6.855 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007296/0.5201, allocations: 498.3 kB / 0.5316 GB, free: 6.723 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002867/0.523, allocations: 1.627 MB / 0.5332 GB, free: 6.387 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.523, allocations: 1.25 kB / 0.5332 GB, free: 6.387 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.523, allocations: 0 / 0.5332 GB, free: 6.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.136e-05/0.523, allocations: 0 / 0.5332 GB, free: 6.387 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.003429/0.5264, allocations: 1.443 MB / 0.5346 GB, free: 5.656 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.5265, allocations: 13.38 kB / 0.5346 GB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005101/0.527, allocations: 150.3 kB / 0.5347 GB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001514/0.5285, allocations: 0.6872 MB / 0.5354 GB, free: 5.277 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000272/0.5288, allocations: 346.7 kB / 0.5357 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000141/0.5289, allocations: 81.28 kB / 0.5358 GB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002309/0.5312, allocations: 1.749 MB / 0.5375 GB, free: 3.824 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.236e-05/0.5313, allocations: 2.094 kB / 0.5375 GB, free: 3.824 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001101/0.5314, allocations: 46.81 kB / 0.5376 GB, free: 3.793 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.91e-05/0.5315, allocations: 58.36 kB / 0.5376 GB, free: 3.781 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002129/0.5336, allocations: 0.9879 MB / 0.5386 GB, free: 3.453 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.006391/0.54, allocations: 5.047 MB / 0.5435 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.5416, allocations: 0.6729 MB / 0.5442 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007433/0.5423, allocations: 365 kB / 0.5445 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00245/0.5448, allocations: 0.9967 MB / 0.5455 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001316/0.5461, allocations: 0.8629 MB / 0.5463 GB, free: 13.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=71): time 2.364e-06/0.5461, allocations: 0 / 0.5463 GB, free: 13.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=76): time 0.007712/0.5538, allocations: 2.685 MB / 0.549 GB, free: 12.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002023/0.554, allocations: 243.3 kB / 0.5492 GB, free: 11.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00137/0.5554, allocations: 0.7802 MB / 0.55 GB, free: 11.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.107e-05/0.5555, allocations: 44.7 kB / 0.55 GB, free: 11.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005785/0.556, allocations: 0.55 MB / 0.5505 GB, free: 10.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002944/0.5563, allocations: 277.1 kB / 0.5508 GB, free: 10.72 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004134/0.5567, allocations: 243.3 kB / 0.551 GB, free: 10.58 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003313/0.5571, allocations: 405.3 kB / 0.5514 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008437/0.5579, allocations: 396.1 kB / 0.5518 GB, free: 10 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00163/0.5595, allocations: 1.073 MB / 0.5529 GB, free: 8.922 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01151/0.571, allocations: 2.856 MB / 0.5556 GB, free: 7.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.087e-05/0.5711, allocations: 10.7 kB / 0.5557 GB, free: 7.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003928/0.575, allocations: 1.565 MB / 0.5572 GB, free: 6.301 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.243e-05/0.5751, allocations: 15.03 kB / 0.5572 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.132e-05/0.5751, allocations: 17.12 kB / 0.5572 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.5762, allocations: 361.3 kB / 0.5576 GB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009257/0.5771, allocations: 261 kB / 0.5578 GB, free: 6.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004837/0.5819, allocations: 4.043 MB / 0.5618 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/0.5833, allocations: 66.28 kB / 0.5618 GB, free: 2.289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001395/0.5835, allocations: 62.55 kB / 0.5619 GB, free: 2.277 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.000943/0.5844, allocations: 339.6 kB / 0.5622 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002272/0.5847, allocations: 104.7 kB / 0.5623 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003116/0.5878, allocations: 1.437 MB / 0.5637 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.958e-05/0.5878, allocations: 11.94 kB / 0.5637 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.5878, allocations: 4.094 kB / 0.5637 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.5878, allocations: 7.922 kB / 0.5637 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004637/0.5924, allocations: 2.08 MB / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.5925, allocations: 0 / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005915/0.593, allocations: 127.8 kB / 0.5659 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008394/0.5939, allocations: 348.1 kB / 0.5662 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.202e-05/0.594, allocations: 23.98 kB / 0.5662 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004264/0.5982, allocations: 4.02 MB / 0.5702 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.104e-06/0.5982, allocations: 7.969 kB / 0.5702 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004188/0.6024, allocations: 1.839 MB / 0.572 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009146/0.6033, allocations: 203.1 kB / 0.5722 GB, free: 7.969 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001647/0.6035, allocations: 23.98 kB / 0.5722 GB, free: 7.945 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006315/0.6041, allocations: 39.97 kB / 0.5722 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002265/0.6044, allocations: 84.44 kB / 0.5723 GB, free: 7.824 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.878e-05/0.6044, allocations: 39.97 kB / 0.5723 GB, free: 7.785 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008694/0.6053, allocations: 0.499 MB / 0.5728 GB, free: 7.293 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6053, allocations: 0 / 0.5728 GB, free: 7.293 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001832/0.6071, allocations: 351.7 kB / 0.5732 GB, free: 6.949 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.0006492/0.6078, allocations: 290 kB / 0.5734 GB, free: 6.664 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002755/0.6105, allocations: 1.286 MB / 0.5747 GB, free: 5.352 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.6106, allocations: 0 / 0.5747 GB, free: 5.352 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001427/0.612, allocations: 0.7481 MB / 0.5754 GB, free: 4.582 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001957/0.6139, allocations: 424.1 kB / 0.5758 GB, free: 4.176 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003905/0.6178, allocations: 2.045 MB / 0.5778 GB, free: 2.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005844/0.6184, allocations: 495.5 kB / 0.5783 GB, free: 1.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009936/0.6194, allocations: 291.3 kB / 0.5786 GB, free: 1.297 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002346/0.6197, allocations: 95.41 kB / 0.5787 GB, free: 1.203 MB / 414.1 MB Notification: Performance of SimCode: time 1.302e-06/0.6197, allocations: 4 kB / 0.5787 GB, free: 1.199 MB / 414.1 MB Notification: Performance of Templates: time 0.04272/0.6624, allocations: 22.53 MB / 0.6007 GB, free: 11.07 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.434895934537053] Failed to read output from testmodel.py, exit status != 0: 0.6729309689253569 0.688282212 0.16182725999999995 Calling exit ...