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_003.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: "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 196.7 kB / 16.53 MB, free: 6.664 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1976/0.1976, allocations: 22.35 MB / 312.7 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 55.91 kB / 381 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3015, allocations: 54.95 MB / 435.9 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.003798/0.3053, allocations: 3.437 MB / 439.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.3071, allocations: 1.042 MB / 440.4 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002177/0.3073, allocations: 9.25 kB / 440.4 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002099/0.3075, allocations: 76.52 kB / 440.5 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004533/0.308, allocations: 202.9 kB / 440.7 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005685/0.3086, allocations: 227.3 kB / 440.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006057/0.3092, allocations: 0.8519 MB / 441.7 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005748/0.3098, allocations: 0.592 MB / 442.3 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003377/0.3102, allocations: 412.4 kB / 442.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005275/0.3107, allocations: 0.5629 MB / 443.3 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001246/0.3108, allocations: 95.78 kB / 443.4 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.311, allocations: 125.8 kB / 443.5 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000175/0.3112, allocations: 270.6 kB / 443.8 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002848/0.3115, allocations: 428 kB / 444.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006365/0.3121, allocations: 1.023 MB / 445.2 MB, free: 34.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3122, allocations: 0 / 445.2 MB, free: 34.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3122, allocations: 2.875 kB / 445.2 MB, free: 34.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.3122, allocations: 0 / 445.2 MB, free: 34.29 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.002202/0.3144, allocations: 1.109 MB / 446.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.3145, allocations: 7.562 kB / 446.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.3146, allocations: 94.97 kB / 446.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.3147, allocations: 71.88 kB / 446.5 MB, free: 33.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005565/0.3153, allocations: 459.3 kB / 447 MB, free: 33.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.825e-05/0.3153, allocations: 40.94 kB / 447 MB, free: 33.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.3155, allocations: 61.94 kB / 447.1 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.3167, allocations: 0.7374 MB / 447.8 MB, free: 32.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.3167, allocations: 0 / 447.8 MB, free: 32.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-05/0.3168, allocations: 21.72 kB / 447.8 MB, free: 32.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.3168, allocations: 15.05 kB / 447.8 MB, free: 32.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.3182, allocations: 0.8106 MB / 448.6 MB, free: 32.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004433/0.3226, allocations: 2.395 MB / 451 MB, free: 31.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.3237, allocations: 0.647 MB / 451.7 MB, free: 31.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007068/0.3244, allocations: 415 kB / 452.1 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.667e-05/0.3245, allocations: 16.39 kB / 452.1 MB, free: 30.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.3245, allocations: 41.94 kB / 452.1 MB, free: 30.89 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000634/0.3251, allocations: 171.5 kB / 452.3 MB, free: 30.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.845e-06/0.3251, allocations: 0 / 452.3 MB, free: 30.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.009343/0.3345, allocations: 2.366 MB / 454.7 MB, free: 29.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/0.3346, allocations: 58.78 kB / 454.7 MB, free: 29.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004926/0.3351, allocations: 451.1 kB / 455.2 MB, free: 29.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.09e-05/0.3352, allocations: 41.17 kB / 455.2 MB, free: 29.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.3353, allocations: 266.2 kB / 455.5 MB, free: 29.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/0.3355, allocations: 237.6 kB / 455.7 MB, free: 29.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002598/0.3357, allocations: 162.4 kB / 455.9 MB, free: 29.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.982e-05/0.3358, allocations: 366.2 kB / 456.2 MB, free: 28.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006137/0.3364, allocations: 339.2 kB / 456.6 MB, free: 28.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006798/0.3371, allocations: 471.5 kB / 457 MB, free: 28.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.3384, allocations: 0.8274 MB / 457.8 MB, free: 28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.3385, allocations: 0 / 457.8 MB, free: 28 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005572/0.344, allocations: 1.573 MB / 459.4 MB, free: 27.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.3441, allocations: 6.375 kB / 459.4 MB, free: 27.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.3441, allocations: 3.312 kB / 459.4 MB, free: 27.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004702/0.3488, allocations: 0.8036 MB / 460.2 MB, free: 27.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.3503, allocations: 247.6 kB / 460.5 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005328/0.3556, allocations: 4.082 MB / 464.5 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008375/0.3565, allocations: 28.7 kB / 464.6 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-05/0.3566, allocations: 41.69 kB / 464.6 MB, free: 24.12 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 {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003212/0.3569, allocations: 210.5 kB / 464.8 MB, free: 23.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.357, allocations: 54.31 kB / 464.9 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003502/0.3605, allocations: 1.321 MB / 466.2 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.3606, allocations: 7.656 kB / 466.2 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.3606, allocations: 3.078 kB / 466.2 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.3606, allocations: 5.172 kB / 466.2 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004182/0.3648, allocations: 2.003 MB / 468.2 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.3648, allocations: 0.6562 kB / 468.2 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.366, allocations: 213.5 kB / 468.4 MB, free: 22.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002444/0.3684, allocations: 0.5121 MB / 468.9 MB, free: 22.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.06e-05/0.3685, allocations: 23.22 kB / 469 MB, free: 22.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003265/0.3718, allocations: 3.419 MB / 472.4 MB, free: 19.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3718, allocations: 0 / 472.4 MB, free: 19.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003746/0.3756, allocations: 1.659 MB / 474 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001845/0.3758, allocations: 134.7 kB / 474.2 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.3759, allocations: 31.09 kB / 474.2 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004976/0.3764, allocations: 23.02 kB / 474.2 MB, free: 18.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.3766, allocations: 57.78 kB / 474.3 MB, free: 18.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.546e-05/0.3766, allocations: 24.7 kB / 474.3 MB, free: 18.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003563/0.377, allocations: 322.1 kB / 474.6 MB, free: 18.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.377, allocations: 0 / 474.6 MB, free: 18.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008551/0.3779, allocations: 227.2 kB / 474.8 MB, free: 18.29 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 (65): * Single equations (assignments): 62 * 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 {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00361/0.3815, allocations: 2.204 MB / 477 MB, free: 17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00291/0.3844, allocations: 1.218 MB / 478.3 MB, free: 16.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.3844, allocations: 0 / 478.3 MB, free: 16.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00128/0.3857, allocations: 0.6467 MB / 478.9 MB, free: 16.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006955/0.3864, allocations: 127.5 kB / 479 MB, free: 16.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0163/0.4027, allocations: 8.238 MB / 487.3 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.4031, allocations: 0.9196 MB / 488.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005332/0.4036, allocations: 145.1 kB / 488.3 MB, free: 8.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003273/0.4039, allocations: 243.3 kB / 488.6 MB, free: 8.02 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.404, allocations: 0 / 488.6 MB, free: 8.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0415/0.4455, allocations: 18.17 MB / 0.4949 GB, free: 6.188 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.29, allocations: 3.688 kB / 0.4949 GB, free: 6.188 MB / 366.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1)