Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008352/0.0008354, allocations: 98.11 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006272/0.006272, allocations: 172.4 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2278/0.2278, allocations: 22.35 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003112/0.0003112, allocations: 8 kB / 382.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3091, allocations: 55.98 MB / 438.6 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.002937/0.3121, allocations: 3.522 MB / 442.1 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001638/0.3138, allocations: 1.118 MB / 443.2 MB, free: 35.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002116/0.314, allocations: 5.906 kB / 443.2 MB, free: 35.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001666/0.3142, allocations: 53.61 kB / 443.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003994/0.3146, allocations: 192.3 kB / 443.5 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004766/0.3151, allocations: 204.3 kB / 443.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007321/0.3158, allocations: 0.9868 MB / 444.7 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005614/0.3164, allocations: 0.5623 MB / 445.2 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003718/0.3168, allocations: 386.7 kB / 445.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000597/0.3174, allocations: 0.5674 MB / 446.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.3175, allocations: 65.78 kB / 446.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002015/0.3177, allocations: 100.2 kB / 446.3 MB, free: 34.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001897/0.3179, allocations: 249.7 kB / 446.6 MB, free: 34.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003299/0.3183, allocations: 446.2 kB / 447 MB, free: 34.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007388/0.319, allocations: 1.027 MB / 448 MB, free: 33.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.319, allocations: 0 / 448 MB, free: 33.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.319, allocations: 0 / 448 MB, free: 33.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.3191, allocations: 0 / 448 MB, free: 33.99 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002276/0.3213, allocations: 1.014 MB / 449 MB, free: 33.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.3214, allocations: 12.53 kB / 449.1 MB, free: 33.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001799/0.3216, allocations: 78.38 kB / 449.1 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006363/0.3222, allocations: 488.7 kB / 449.6 MB, free: 32.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.752e-05/0.3223, allocations: 46.16 kB / 449.7 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.3224, allocations: 54.91 kB / 449.7 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.3237, allocations: 0.7648 MB / 450.5 MB, free: 32.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.3237, allocations: 3.938 kB / 450.5 MB, free: 32.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.093e-05/0.3238, allocations: 21.84 kB / 450.5 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.3238, allocations: 12.59 kB / 450.5 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.3252, allocations: 0.8282 MB / 451.3 MB, free: 32.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004259/0.3295, allocations: 2.081 MB / 453.4 MB, free: 31.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.3305, allocations: 0.6688 MB / 454.1 MB, free: 31.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006482/0.3312, allocations: 409 kB / 454.5 MB, free: 30.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.456e-05/0.3312, allocations: 16.69 kB / 454.5 MB, free: 30.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.615e-05/0.3313, allocations: 50.17 kB / 454.6 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005992/0.3319, allocations: 140.5 kB / 454.7 MB, free: 30.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.805e-06/0.3319, allocations: 0 / 454.7 MB, free: 30.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.01065/0.3426, allocations: 2.523 MB / 457.2 MB, free: 29.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.3426, allocations: 59.69 kB / 457.3 MB, free: 29.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006672/0.3433, allocations: 497.2 kB / 457.8 MB, free: 29.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001454/0.3435, allocations: 40.33 kB / 457.8 MB, free: 29.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.3436, allocations: 289.4 kB / 458.1 MB, free: 29.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002033/0.3438, allocations: 248.2 kB / 458.3 MB, free: 29.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.344, allocations: 67.84 kB / 458.4 MB, free: 29.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.3441, allocations: 386 kB / 458.8 MB, free: 28.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006903/0.3448, allocations: 364.3 kB / 459.1 MB, free: 28.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007159/0.3455, allocations: 496.7 kB / 459.6 MB, free: 28.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.3469, allocations: 0.8764 MB / 460.5 MB, free: 27.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.3469, allocations: 4.75 kB / 460.5 MB, free: 27.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.00603/0.353, allocations: 1.636 MB / 462.1 MB, free: 27.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.353, allocations: 6.906 kB / 462.1 MB, free: 27.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.353, allocations: 3.734 kB / 462.1 MB, free: 27.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004436/0.3575, allocations: 0.6783 MB / 462.8 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00156/0.3591, allocations: 256 kB / 463.1 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005834/0.3649, allocations: 3.894 MB / 467 MB, free: 24.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009963/0.3659, allocations: 35.75 kB / 467 MB, free: 24.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.561e-05/0.366, allocations: 46.64 kB / 467 MB, free: 24.07 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 75 * 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): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,5), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003454/0.3664, allocations: 206.3 kB / 467.2 MB, free: 23.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.3665, allocations: 66.8 kB / 467.3 MB, free: 23.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00383/0.3704, allocations: 1.392 MB / 468.7 MB, free: 23.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.3704, allocations: 8.75 kB / 468.7 MB, free: 23.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.3704, allocations: 2.125 kB / 468.7 MB, free: 23.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.585e-05/0.3704, allocations: 5.578 kB / 468.7 MB, free: 23.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001232/0.3717, allocations: 0.8014 MB / 469.5 MB, free: 22.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.3717, allocations: 1.094 kB / 469.5 MB, free: 22.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001266/0.373, allocations: 219.8 kB / 469.7 MB, free: 22.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002281/0.3753, allocations: 448.4 kB / 470.2 MB, free: 22.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/0.3754, allocations: 33.19 kB / 470.2 MB, free: 22.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003633/0.379, allocations: 3.255 MB / 473.5 MB, free: 19.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.379, allocations: 0 / 473.5 MB, free: 19.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004234/0.3833, allocations: 1.789 MB / 475.2 MB, free: 19.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002266/0.3835, allocations: 143.5 kB / 475.4 MB, free: 19.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.3836, allocations: 20.14 kB / 475.4 MB, free: 19.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005539/0.3842, allocations: 35.84 kB / 475.4 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001902/0.3844, allocations: 67.47 kB / 475.5 MB, free: 19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.926e-05/0.3845, allocations: 25.78 kB / 475.5 MB, free: 19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004615/0.3849, allocations: 346.4 kB / 475.9 MB, free: 18.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3849, allocations: 0 / 475.9 MB, free: 18.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001033/0.386, allocations: 239.8 kB / 476.1 MB, free: 18.8 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (streamNL.T[1],streamNL.T[2],streamNL.T[3],streamNL.T[4],streamNL.T[5],streamLIN.T[1],streamLIN.T[2],streamLIN.T[3],streamLIN.T[4],streamLIN.T[5]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 64 * 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): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,6), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002094/0.3862, allocations: 135.5 kB / 476.2 MB, free: 18.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002621/0.3888, allocations: 1.17 MB / 477.4 MB, free: 18.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3888, allocations: 1.062 kB / 477.4 MB, free: 18.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.3903, allocations: 0.697 MB / 478.1 MB, free: 17.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007026/0.391, allocations: 127.5 kB / 478.2 MB, free: 17.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00434/0.3953, allocations: 2.554 MB / 480.8 MB, free: 16.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004524/0.3958, allocations: 0.9347 MB / 481.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006349/0.3964, allocations: 151.5 kB / 481.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002574/0.3967, allocations: 71.12 kB / 481.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3967, allocations: 1.281 kB / 481.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of Templates: time 0.01781/0.4145, allocations: 12.18 MB / 494.1 MB, free: 4.809 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)