Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.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.001018/0.001018, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.002073/0.002073, allocations: 177.4 kB / 23.36 MB, free: 1.129 MB / 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.079/1.079, allocations: 177.1 MB / 203.8 MB, free: 5.484 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.03952/0.03952, allocations: 8.618 MB / 268.9 MB, free: 4.797 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.CascadeLevelControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl") translateModel(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 289.3 MB, free: 376 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.628e-05/2.816e-05, allocations: 2.312 kB / 289.3 MB, free: 372 kB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.1252/0.1253, allocations: 10.17 MB / 299.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006739/0.132, allocations: 4.066 MB / 303.5 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001436/0.1334, allocations: 73.94 kB / 303.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008888/0.1343, allocations: 292.9 kB / 303.9 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002592/0.1369, allocations: 1.037 MB / 304.9 MB, free: 9.926 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00301/0.1399, allocations: 1.225 MB / 306.1 MB, free: 8.992 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003424/0.1434, allocations: 2.709 MB / 308.9 MB, free: 7.402 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001235/0.1446, allocations: 0.7369 MB / 309.6 MB, free: 6.852 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00268/0.1473, allocations: 1.39 MB / 311 MB, free: 6.023 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001423/0.1487, allocations: 0.7837 MB / 311.8 MB, free: 5.586 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002962/0.149, allocations: 99.06 kB / 311.9 MB, free: 5.586 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007687/0.1498, allocations: 277.9 kB / 312.1 MB, free: 5.449 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002899/0.1501, allocations: 414.6 kB / 312.5 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004378/0.1505, allocations: 454.8 kB / 313 MB, free: 4.598 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001438/0.1519, allocations: 1.195 MB / 314.2 MB, free: 3.398 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1519, allocations: 0 / 314.2 MB, free: 3.398 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1519, allocations: 0 / 314.2 MB, free: 3.398 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.138e-05/0.152, allocations: 0 / 314.2 MB, free: 3.398 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.001937/0.1539, allocations: 1.506 MB / 315.7 MB, free: 1.867 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.154, allocations: 16.02 kB / 315.7 MB, free: 1.852 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003609/0.1543, allocations: 208.5 kB / 315.9 MB, free: 1.648 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00093/0.1552, allocations: 0.7459 MB / 316.7 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001372/0.1554, allocations: 304.2 kB / 316.9 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.1555, allocations: 96.33 kB / 317 MB, free: 432 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.1566, allocations: 1.363 MB / 318.4 MB, free: 14.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.224e-05/0.1566, allocations: 8.125 kB / 318.4 MB, free: 14.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.343e-05/0.1567, allocations: 47.94 kB / 318.5 MB, free: 14.77 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.783e-05/0.1567, allocations: 57.92 kB / 318.5 MB, free: 14.71 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005966/0.1573, allocations: 434.9 kB / 318.9 MB, free: 14.29 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004348/0.1617, allocations: 5.115 MB / 324.1 MB, free: 8.996 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007089/0.1624, allocations: 451.5 kB / 324.5 MB, free: 8.551 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001991/0.1626, allocations: 155.2 kB / 324.6 MB, free: 8.398 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001248/0.1638, allocations: 0.7842 MB / 325.4 MB, free: 7.602 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/0.1639, allocations: 48.02 kB / 325.5 MB, free: 7.547 MB / 282.7 MB Notification: Performance of pre-optimization done (n=78): time 3.617e-06/0.1639, allocations: 0 / 325.5 MB, free: 7.547 MB / 282.7 MB Notification: Performance of matching and sorting (n=83): time 0.002965/0.1669, allocations: 1.518 MB / 327 MB, free: 5.984 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.741e-05/0.1669, allocations: 137.5 kB / 327.1 MB, free: 5.82 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006464/0.1676, allocations: 0.8189 MB / 328 MB, free: 4.98 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.247e-05/0.1677, allocations: 41.7 kB / 328 MB, free: 4.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002558/0.1679, allocations: 0.5091 MB / 328.5 MB, free: 4.414 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001899/0.1681, allocations: 313.4 kB / 328.8 MB, free: 4.105 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002481/0.1684, allocations: 258.6 kB / 329.1 MB, free: 3.844 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.969e-05/0.1685, allocations: 357.8 kB / 329.4 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.1687, allocations: 142.1 kB / 329.5 MB, free: 3.348 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004587/0.1691, allocations: 0.7445 MB / 330.3 MB, free: 2.34 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009409/0.1701, allocations: 1.062 MB / 331.4 MB, free: 1.039 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.198e-05/0.1701, allocations: 11.94 kB / 331.4 MB, free: 1.027 MB / 282.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.001191/0.1713, allocations: 0.8678 MB / 332.2 MB, free: 144 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.1713, allocations: 12 kB / 332.2 MB, free: 132 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-05/0.1713, allocations: 16 kB / 332.3 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004945/0.1718, allocations: 257 kB / 332.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005495/0.1723, allocations: 279.5 kB / 332.8 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002175/0.1745, allocations: 3.51 MB / 336.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005347/0.175, allocations: 47.98 kB / 336.3 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.767e-05/0.1751, allocations: 60.53 kB / 336.4 MB, free: 11.76 MB / 298.7 MB Warning: Assuming fixed start value for the following 3 variables: 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 20 (tank.inFlow[3],tank.inFlow[2],tank.inFlow[1],tank.regularFlow[3],tank.regularFlow[2],tank.regularFlow[1],PI_Valve.TS_in,PI_Level.TS_in,PI_Valve.satLOW_in,PI_Valve.satHIGH_in,PI_Valve.ATreq_in,sub.Yfp,sub.U2fp,sub.U1fp,div.Yfp,div.U2fp,div.U1fp,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 (155): * Single equations (assignments): 152 * 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.0004042/0.1755, allocations: 229.1 kB / 336.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.1757, allocations: 95.84 kB / 336.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/0.1769, allocations: 0.8895 MB / 337.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.1769, allocations: 8 kB / 337.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.1769, allocations: 3.984 kB / 337.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.1769, allocations: 11.31 kB / 337.6 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002582/0.1795, allocations: 1.23 MB / 338.9 MB, free: 9.227 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.1795, allocations: 4 kB / 338.9 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006656/0.1802, allocations: 155.8 kB / 339 MB, free: 9.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000698/0.1809, allocations: 223 kB / 339.2 MB, free: 8.844 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.441e-05/0.1809, allocations: 27.98 kB / 339.3 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002955/0.1839, allocations: 3.495 MB / 342.8 MB, free: 5.109 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.1839, allocations: 11.03 kB / 342.8 MB, free: 5.102 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001866/0.1858, allocations: 0.893 MB / 343.7 MB, free: 4.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005487/0.1863, allocations: 143.1 kB / 343.8 MB, free: 4.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001907/0.1865, allocations: 20 kB / 343.8 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000538/0.1871, allocations: 35.98 kB / 343.9 MB, free: 3.965 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001952/0.1872, allocations: 80.73 kB / 343.9 MB, free: 3.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.668e-05/0.1873, allocations: 27.98 kB / 344 MB, free: 3.859 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005512/0.1879, allocations: 364.2 kB / 344.3 MB, free: 3.492 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1879, allocations: 0 / 344.3 MB, free: 3.492 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001701/0.1896, allocations: 319.9 kB / 344.6 MB, free: 3.18 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (PI_Level.Iaction,PI_Level.Fder,tank.level,tank.medium.T,actuator.y,PI_Valve.Iaction,PI_Valve.Fder) * Number of discrete variables: 6 (tank.regularFlow[1],tank.regularFlow[2],tank.regularFlow[3],tank.inFlow[1],tank.inFlow[2],tank.inFlow[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,9), (2,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000495/0.1901, allocations: 176 kB / 344.8 MB, free: 3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001781/0.1919, allocations: 0.8608 MB / 345.7 MB, free: 2.113 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.913e-05/0.1919, allocations: 17.81 kB / 345.7 MB, free: 2.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008224/0.1927, allocations: 0.5132 MB / 346.2 MB, free: 1.551 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/0.1948, allocations: 465.8 kB / 346.6 MB, free: 1.117 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004742/0.1995, allocations: 2.064 MB / 348.7 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003169/0.1999, allocations: 246.8 kB / 349 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001037/0.2009, allocations: 209.9 kB / 349.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001022/0.2019, allocations: 403 kB / 349.6 MB, free: 14.16 MB / 314.7 MB Notification: Performance of SimCode: time 1.693e-06/0.2019, allocations: 0 / 349.6 MB, free: 14.16 MB / 314.7 MB Notification: Performance of Templates: time 0.03893/0.2409, allocations: 21.42 MB / 371 MB, free: 9.121 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.makefile [Timeout 660] (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.sim & ./IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl -abortSlowSimulation -alarm=240 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.5903587131761014]