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.00137/0.00137, allocations: 73.97 kB / 20.66 MB, free: 3.844 MB / 18.57 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.001525/0.001525, allocations: 169.4 kB / 24.05 MB, free: 460 kB / 18.57 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.057/1.057, allocations: 177.1 MB / 204.5 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] 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.03719/0.03719, allocations: 8.615 MB / 269.7 MB, free: 4.758 MB / 250.7 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.283e-06/1.283e-06, allocations: 0 / 343.3 MB, free: 7.938 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.389e-05/2.517e-05, allocations: 4.562 kB / 343.3 MB, free: 7.934 MB / 314.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.008814/0.008839, allocations: 9.695 MB / 353 MB, free: 14.19 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005854/0.01469, allocations: 3.699 MB / 356.7 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.01574, allocations: 51.5 kB / 356.8 MB, free: 10.43 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000662/0.0164, allocations: 269.9 kB / 357 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0018/0.0182, allocations: 0.9784 MB / 358 MB, free: 9.18 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00205/0.02025, allocations: 1.076 MB / 359.1 MB, free: 8.102 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002305/0.02256, allocations: 2.521 MB / 361.6 MB, free: 5.574 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008795/0.02344, allocations: 0.6552 MB / 362.3 MB, free: 4.902 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001486/0.02492, allocations: 1.286 MB / 363.5 MB, free: 3.613 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009335/0.02586, allocations: 0.779 MB / 364.3 MB, free: 2.832 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001553/0.02601, allocations: 92 kB / 364.4 MB, free: 2.742 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005607/0.02657, allocations: 295.6 kB / 364.7 MB, free: 2.453 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002918/0.02687, allocations: 398.7 kB / 365.1 MB, free: 2.062 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003668/0.02723, allocations: 422.9 kB / 365.5 MB, free: 1.648 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001376/0.02861, allocations: 1.164 MB / 366.7 MB, free: 492 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.02861, allocations: 0 / 366.7 MB, free: 492 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.02862, allocations: 0 / 366.7 MB, free: 492 kB / 330.7 MB Notification: Performance of Transformations before backend: time 3.583e-05/0.02865, allocations: 4 kB / 366.7 MB, free: 488 kB / 330.7 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.002083/0.03074, allocations: 1.508 MB / 368.2 MB, free: 14.92 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.03077, allocations: 8.031 kB / 368.2 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000385/0.03115, allocations: 231.9 kB / 368.4 MB, free: 14.69 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008117/0.03196, allocations: 0.6993 MB / 369.1 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001983/0.03216, allocations: 339.6 kB / 369.4 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.03228, allocations: 92.34 kB / 369.5 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.03336, allocations: 1.439 MB / 371 MB, free: 11.78 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.03338, allocations: 8.078 kB / 371 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.158e-05/0.03345, allocations: 47.92 kB / 371 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-05/0.03351, allocations: 49.98 kB / 371.1 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005413/0.03405, allocations: 413.2 kB / 371.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003982/0.03803, allocations: 5.932 MB / 377.4 MB, free: 5.145 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005582/0.03859, allocations: 373.5 kB / 377.8 MB, free: 4.766 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001744/0.03876, allocations: 149.6 kB / 377.9 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001057/0.03982, allocations: 0.8821 MB / 378.8 MB, free: 3.715 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005215/0.04034, allocations: 0.6793 MB / 379.5 MB, free: 2.922 MB / 346.7 MB Notification: Performance of pre-optimization done (n=71): time 1.814e-06/0.04034, allocations: 0 / 379.5 MB, free: 2.922 MB / 346.7 MB Notification: Performance of matching and sorting (n=76): time 0.002687/0.04303, allocations: 1.521 MB / 381 MB, free: 1.352 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.699e-05/0.04312, allocations: 247.9 kB / 381.2 MB, free: 1.055 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000541/0.04366, allocations: 0.7834 MB / 382 MB, free: 260 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.619e-05/0.04371, allocations: 41.7 kB / 382.1 MB, free: 212 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003293/0.04404, allocations: 0.6036 MB / 382.7 MB, free: 15.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/0.04422, allocations: 273.8 kB / 382.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002421/0.04446, allocations: 256.3 kB / 383.2 MB, free: 15.06 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.04465, allocations: 0.5975 MB / 383.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.04485, allocations: 134.5 kB / 383.9 MB, free: 14.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005794/0.04543, allocations: 1.054 MB / 385 MB, free: 12.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009877/0.04641, allocations: 1.2 MB / 386.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.04642, allocations: 4 kB / 386.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.001386/0.04781, allocations: 1.043 MB / 387.2 MB, free: 10.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.04783, allocations: 12 kB / 387.2 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.04785, allocations: 16 kB / 387.2 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004591/0.04831, allocations: 254.9 kB / 387.5 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004968/0.0488, allocations: 255.6 kB / 387.7 MB, free: 9.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002415/0.05122, allocations: 4.848 MB / 392.6 MB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004916/0.05171, allocations: 51.94 kB / 392.6 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.536e-05/0.05178, allocations: 55.98 kB / 392.7 MB, free: 4.562 MB / 362.7 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: 75 * 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 (142): * Single equations (assignments): 139 * 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.0003769/0.05215, allocations: 286.1 kB / 393 MB, free: 4.277 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.0523, allocations: 135.3 kB / 393.1 MB, free: 4.145 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001226/0.05352, allocations: 0.9409 MB / 394.1 MB, free: 3.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.05353, allocations: 8 kB / 394.1 MB, free: 3.172 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.05353, allocations: 11.98 kB / 394.1 MB, free: 3.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.05354, allocations: 3.984 kB / 394.1 MB, free: 3.156 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001764/0.05531, allocations: 1.383 MB / 395.5 MB, free: 1.699 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.05531, allocations: 0 / 395.5 MB, free: 1.699 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002833/0.05559, allocations: 119.8 kB / 395.6 MB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003612/0.05596, allocations: 231 kB / 395.8 MB, free: 1.344 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.474e-05/0.056, allocations: 27.92 kB / 395.8 MB, free: 1.316 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001977/0.05798, allocations: 4.826 MB / 400.7 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.05798, allocations: 0 / 400.7 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001296/0.05927, allocations: 1.058 MB / 401.7 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002752/0.05955, allocations: 175.2 kB / 401.9 MB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.525e-05/0.05964, allocations: 27.92 kB / 401.9 MB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002776/0.05992, allocations: 27.98 kB / 401.9 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.06005, allocations: 80.45 kB / 402 MB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.606e-05/0.0601, allocations: 27.97 kB / 402 MB, free: 10.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002912/0.06039, allocations: 442.8 kB / 402.5 MB, free: 10.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.06039, allocations: 0 / 402.5 MB, free: 10.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009031/0.06129, allocations: 315.8 kB / 402.8 MB, free: 10.05 MB / 378.7 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 (70): * Single equations (assignments): 59 * 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.000347/0.06164, allocations: 223.7 kB / 403 MB, free: 9.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.06272, allocations: 0.96 MB / 404 MB, free: 8.824 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.06273, allocations: 0 / 404 MB, free: 8.824 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005488/0.06328, allocations: 0.6302 MB / 404.6 MB, free: 8.156 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.06435, allocations: 445.1 kB / 405 MB, free: 7.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/0.06671, allocations: 1.75 MB / 406.8 MB, free: 5.918 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001672/0.06688, allocations: 234 kB / 407 MB, free: 5.668 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004888/0.06736, allocations: 190.8 kB / 407.2 MB, free: 5.484 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007006/0.06806, allocations: 473.8 kB / 407.7 MB, free: 5.02 MB / 378.7 MB Notification: Performance of SimCode: time 1.222e-06/0.06807, allocations: 4 kB / 407.7 MB, free: 5.016 MB / 378.7 MB Notification: Performance of Templates: time 0.02809/0.09615, allocations: 22.17 MB / 429.8 MB, free: 15.23 MB / 410.7 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=240 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 16.426822188310325]