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.001677/0.001677, allocations: 78.72 kB / 19.18 MB, free: 2.527 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.002325/0.002325, allocations: 167.5 kB / 22.46 MB, free: 5.363 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.535/1.535, allocations: 177.1 MB / 202.8 MB, free: 9.168 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.06367/0.06367, allocations: 8.613 MB / 267.8 MB, free: 8.566 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: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 396.8 MB, free: 5.441 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.585e-05/2.721e-05, allocations: 2.281 kB / 396.8 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.02791/0.02794, allocations: 20.23 MB / 417 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.03929, allocations: 6.075 MB / 423.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001246/0.04054, allocations: 51.5 kB / 423.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001591/0.04213, allocations: 401 kB / 423.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003404/0.04553, allocations: 1.153 MB / 424.7 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003642/0.04917, allocations: 1.257 MB / 425.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004144/0.05332, allocations: 2.486 MB / 428.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001408/0.05472, allocations: 0.6079 MB / 429 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003087/0.05781, allocations: 1.336 MB / 430.4 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001703/0.05952, allocations: 0.7946 MB / 431.2 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003128/0.05983, allocations: 92 kB / 431.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001426/0.06125, allocations: 463 kB / 431.7 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005526/0.06181, allocations: 394.7 kB / 432.1 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008029/0.06261, allocations: 423 kB / 432.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002885/0.06549, allocations: 1.667 MB / 434.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.0655, allocations: 0 / 434.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.0655, allocations: 0 / 434.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.828e-05/0.06555, allocations: 4 kB / 434.2 MB, free: 15.9 MB / 366.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.003803/0.06935, allocations: 1.44 MB / 435.6 MB, free: 14.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.06939, allocations: 8.031 kB / 435.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004727/0.06986, allocations: 148.1 kB / 435.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001359/0.07122, allocations: 0.6965 MB / 436.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003508/0.07157, allocations: 351.5 kB / 436.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.07171, allocations: 76.38 kB / 436.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002561/0.07427, allocations: 1.752 MB / 438.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.891e-05/0.0743, allocations: 4.188 kB / 438.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.07442, allocations: 51.91 kB / 438.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.452e-05/0.07449, allocations: 53.92 kB / 438.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002017/0.07651, allocations: 0.9912 MB / 439.7 MB, free: 9.992 MB / 366.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.007237/0.08375, allocations: 5.021 MB / 444.8 MB, free: 4.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001496/0.08524, allocations: 0.6951 MB / 445.4 MB, free: 4.117 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000743/0.08599, allocations: 369.5 kB / 445.8 MB, free: 3.758 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002123/0.08811, allocations: 0.9789 MB / 446.8 MB, free: 2.758 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001289/0.0894, allocations: 0.8631 MB / 447.7 MB, free: 1.785 MB / 366.1 MB Notification: Performance of pre-optimization done (n=71): time 2.454e-06/0.0894, allocations: 0 / 447.7 MB, free: 1.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.1937/0.2831, allocations: 2.675 MB / 450.3 MB, free: 64.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.2832, allocations: 247.8 kB / 450.6 MB, free: 63.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001385/0.2846, allocations: 0.79 MB / 451.4 MB, free: 63.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.2847, allocations: 42.55 kB / 451.4 MB, free: 63.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003754/0.2851, allocations: 0.5496 MB / 451.9 MB, free: 63.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002929/0.2854, allocations: 266.1 kB / 452.2 MB, free: 63.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004285/0.2858, allocations: 239.7 kB / 452.4 MB, free: 63.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.286, allocations: 412.4 kB / 452.8 MB, free: 62.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008458/0.2868, allocations: 398.6 kB / 453.2 MB, free: 62.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001141/0.288, allocations: 1.071 MB / 454.3 MB, free: 61.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0114/0.2994, allocations: 2.857 MB / 457.2 MB, free: 60.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.661e-05/0.2994, allocations: 4.375 kB / 457.2 MB, free: 60.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003738/0.3031, allocations: 1.562 MB / 458.7 MB, free: 59.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.598e-05/0.3032, allocations: 15.69 kB / 458.7 MB, free: 59.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.666e-05/0.3032, allocations: 16.03 kB / 458.8 MB, free: 59.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009253/0.3041, allocations: 364.1 kB / 459.1 MB, free: 59.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.3052, allocations: 255.9 kB / 459.4 MB, free: 59.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003518/0.3087, allocations: 4.031 MB / 463.4 MB, free: 56.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001233/0.31, allocations: 60.36 kB / 463.5 MB, free: 56.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000205/0.3102, allocations: 66.78 kB / 463.5 MB, free: 56.3 MB / 366.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.0009134/0.3111, allocations: 346.1 kB / 463.9 MB, free: 56.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003933/0.3115, allocations: 103.7 kB / 464 MB, free: 56.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/0.3147, allocations: 1.436 MB / 465.4 MB, free: 55.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.06e-05/0.3147, allocations: 12.33 kB / 465.4 MB, free: 55.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3147, allocations: 0 / 465.4 MB, free: 55.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.3148, allocations: 4.703 kB / 465.4 MB, free: 55.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004184/0.3189, allocations: 2.088 MB / 467.5 MB, free: 54.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.316e-06/0.3189, allocations: 2.188 kB / 467.5 MB, free: 54.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005968/0.3195, allocations: 127.1 kB / 467.6 MB, free: 54.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000814/0.3204, allocations: 346.1 kB / 468 MB, free: 54.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.01e-05/0.3204, allocations: 19.92 kB / 468 MB, free: 54.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002795/0.3232, allocations: 4.029 MB / 472 MB, free: 50.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3232, allocations: 0 / 472 MB, free: 50.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003218/0.3264, allocations: 1.839 MB / 473.9 MB, free: 49.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006037/0.327, allocations: 197 kB / 474 MB, free: 49.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002951/0.3273, allocations: 19.72 kB / 474.1 MB, free: 49.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007542/0.3281, allocations: 44.72 kB / 474.1 MB, free: 49.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/0.3283, allocations: 87.31 kB / 474.2 MB, free: 49.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.32e-05/0.3284, allocations: 35.34 kB / 474.2 MB, free: 49.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008448/0.3293, allocations: 0.5028 MB / 474.7 MB, free: 48.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3293, allocations: 0 / 474.7 MB, free: 48.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001766/0.331, allocations: 347.7 kB / 475.1 MB, free: 48.5 MB / 366.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.0006884/0.3317, allocations: 312.2 kB / 475.4 MB, free: 48.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002586/0.3343, allocations: 1.281 MB / 476.7 MB, free: 46.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.3343, allocations: 4 kB / 476.7 MB, free: 46.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001267/0.3356, allocations: 0.7362 MB / 477.4 MB, free: 46.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002042/0.3376, allocations: 413.6 kB / 477.8 MB, free: 45.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002931/0.3405, allocations: 1.946 MB / 479.7 MB, free: 43.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004057/0.3409, allocations: 495.5 kB / 480.2 MB, free: 43.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007804/0.3417, allocations: 286.3 kB / 480.5 MB, free: 43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002192/0.3419, allocations: 96.47 kB / 480.6 MB, free: 42.91 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3419, allocations: 3.938 kB / 480.6 MB, free: 42.9 MB / 366.1 MB Notification: Performance of Templates: time 0.03026/0.3722, allocations: 21.02 MB / 0.4899 GB, free: 22.3 MB / 366.1 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=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 5.916699789464474] Failed to read output from testmodel.py, exit status != 0: 0.38114555180072784 0.390622038 0.32257225100000003 Calling exit ...