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.00154/0.00154, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001901/0.0019, allocations: 198.1 kB / 16.14 MB, free: 6.719 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.307/1.307, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1965/0.1965, allocations: 22.36 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 55.91 kB / 380.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2761, allocations: 54.96 MB / 435.1 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.004371/0.2805, allocations: 3.922 MB / 439 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002169/0.2827, allocations: 1.135 MB / 440.1 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004851/0.2832, allocations: 5.719 kB / 440.1 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003206/0.2836, allocations: 52.55 kB / 440.2 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006621/0.2843, allocations: 191.9 kB / 440.4 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006581/0.2849, allocations: 200.3 kB / 440.6 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009052/0.2859, allocations: 0.9946 MB / 441.5 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006809/0.2866, allocations: 0.5617 MB / 442.1 MB, free: 35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006025/0.2872, allocations: 395.7 kB / 442.5 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006688/0.2879, allocations: 0.5852 MB / 443.1 MB, free: 34.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001344/0.288, allocations: 73.47 kB / 443.2 MB, free: 34.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002296/0.2882, allocations: 102.2 kB / 443.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001837/0.2884, allocations: 259 kB / 443.5 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003265/0.2888, allocations: 420.1 kB / 443.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006835/0.2895, allocations: 1.054 MB / 445 MB, free: 33.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2895, allocations: 0 / 445 MB, free: 33.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.2895, allocations: 0 / 445 MB, free: 33.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.2895, allocations: 0 / 445 MB, free: 33.84 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.002538/0.292, allocations: 1.165 MB / 446.1 MB, free: 33.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.2921, allocations: 13.62 kB / 446.1 MB, free: 33.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.2922, allocations: 82.03 kB / 446.2 MB, free: 33.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005298/0.2928, allocations: 487.6 kB / 446.7 MB, free: 32.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.019e-05/0.2928, allocations: 40.03 kB / 446.7 MB, free: 32.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.2929, allocations: 57.94 kB / 446.8 MB, free: 32.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.2941, allocations: 0.7704 MB / 447.6 MB, free: 32.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.2942, allocations: 0 / 447.6 MB, free: 32.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-05/0.2942, allocations: 20.28 kB / 447.6 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.2943, allocations: 13.09 kB / 447.6 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.2956, allocations: 0.8236 MB / 448.4 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003707/0.2993, allocations: 2.093 MB / 450.5 MB, free: 31.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009606/0.3003, allocations: 0.6657 MB / 451.2 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005782/0.3009, allocations: 406.7 kB / 451.6 MB, free: 30.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.109e-05/0.3009, allocations: 19.23 kB / 451.6 MB, free: 30.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.301, allocations: 42.78 kB / 451.6 MB, free: 30.57 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006161/0.3016, allocations: 161.6 kB / 451.8 MB, free: 30.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 4.017e-06/0.3016, allocations: 3.938 kB / 451.8 MB, free: 30.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.01009/0.3117, allocations: 2.554 MB / 454.4 MB, free: 29.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/0.3118, allocations: 62.44 kB / 454.4 MB, free: 29.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006129/0.3124, allocations: 495.1 kB / 454.9 MB, free: 29.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.3125, allocations: 40.52 kB / 454.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.3126, allocations: 295.8 kB / 455.2 MB, free: 29.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001953/0.3128, allocations: 244.1 kB / 455.5 MB, free: 28.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003156/0.3132, allocations: 166.4 kB / 455.6 MB, free: 28.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.3133, allocations: 374.3 kB / 456 MB, free: 28.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007201/0.314, allocations: 368.2 kB / 456.4 MB, free: 28.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008135/0.3148, allocations: 497.3 kB / 456.8 MB, free: 27.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001424/0.3163, allocations: 0.8732 MB / 457.7 MB, free: 27.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.3163, allocations: 2.109 kB / 457.7 MB, free: 27.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.006063/0.3224, allocations: 1.655 MB / 459.4 MB, free: 26.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/0.3224, allocations: 6.812 kB / 459.4 MB, free: 26.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.3224, allocations: 2.812 kB / 459.4 MB, free: 26.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004501/0.3269, allocations: 0.7324 MB / 460.1 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/0.3285, allocations: 252.9 kB / 460.4 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005933/0.3345, allocations: 3.901 MB / 464.3 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.3356, allocations: 36.02 kB / 464.3 MB, free: 23.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002207/0.3359, allocations: 42.81 kB / 464.3 MB, free: 23.79 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.0004674/0.3364, allocations: 203.8 kB / 464.5 MB, free: 23.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002128/0.3366, allocations: 69.16 kB / 464.6 MB, free: 23.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004003/0.3406, allocations: 1.413 MB / 466 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.3406, allocations: 8.812 kB / 466 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.3406, allocations: 7.047 kB / 466 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/0.3407, allocations: 4.641 kB / 466 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001229/0.3419, allocations: 0.7903 MB / 466.8 MB, free: 22.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.3419, allocations: 1 kB / 466.8 MB, free: 22.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/0.3432, allocations: 214.4 kB / 467 MB, free: 22.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002467/0.3456, allocations: 495.5 kB / 467.5 MB, free: 22.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001259/0.3458, allocations: 29.41 kB / 467.6 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00352/0.3493, allocations: 3.254 MB / 470.8 MB, free: 19.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3493, allocations: 0 / 470.8 MB, free: 19.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004418/0.3538, allocations: 1.815 MB / 472.6 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001921/0.354, allocations: 142.8 kB / 472.8 MB, free: 18.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001472/0.3541, allocations: 20.58 kB / 472.8 MB, free: 18.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005882/0.3547, allocations: 38.36 kB / 472.8 MB, free: 18.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/0.3549, allocations: 64.8 kB / 472.9 MB, free: 18.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.802e-05/0.355, allocations: 29.22 kB / 472.9 MB, free: 18.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004249/0.3554, allocations: 346.3 kB / 473.3 MB, free: 18.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.3554, allocations: 112 / 473.3 MB, free: 18.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009472/0.3564, allocations: 243.1 kB / 473.5 MB, free: 18.48 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.0002092/0.3566, allocations: 134.6 kB / 473.6 MB, free: 18.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002635/0.3592, allocations: 1.171 MB / 474.8 MB, free: 17.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3593, allocations: 0 / 474.8 MB, free: 17.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001383/0.3607, allocations: 0.6912 MB / 475.5 MB, free: 17.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007005/0.3614, allocations: 133.2 kB / 475.6 MB, free: 17.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003957/0.3653, allocations: 2.381 MB / 478 MB, free: 16.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004239/0.3658, allocations: 0.9429 MB / 478.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006032/0.3664, allocations: 149.7 kB / 479.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002696/0.3667, allocations: 64.97 kB / 479.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3667, allocations: 0 / 479.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of Templates: time 0.017/0.3837, allocations: 12.35 MB / 491.5 MB, free: 4.914 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)