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: "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002",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.001102/0.001102, allocations: 108 kB / 15.6 MB, free: 132 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.001134/0.001134, allocations: 192.1 kB / 16.53 MB, free: 6.391 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.364/1.364, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2018/0.2018, allocations: 22.35 MB / 312.7 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 60.05 kB / 380.9 MB, free: 10.47 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2853, allocations: 54.94 MB / 435.9 MB, free: 39.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.004023/0.2894, allocations: 3.564 MB / 439.4 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.2913, allocations: 1.076 MB / 440.5 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001884/0.2915, allocations: 2.844 kB / 440.5 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002111/0.2917, allocations: 81.12 kB / 440.6 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004417/0.2922, allocations: 222.9 kB / 440.8 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005231/0.2927, allocations: 237.3 kB / 441.1 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006302/0.2934, allocations: 0.911 MB / 442 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006341/0.294, allocations: 0.6128 MB / 442.6 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004097/0.2944, allocations: 432.2 kB / 443 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007115/0.2951, allocations: 0.5971 MB / 443.6 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001728/0.2953, allocations: 101.4 kB / 443.7 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002677/0.2956, allocations: 138.6 kB / 443.8 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002202/0.2958, allocations: 281.5 kB / 444.1 MB, free: 34.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003903/0.2962, allocations: 452.7 kB / 444.5 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009375/0.2972, allocations: 1.078 MB / 445.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.2972, allocations: 0 / 445.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2972, allocations: 0 / 445.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.2972, allocations: 0 / 445.6 MB, free: 34.14 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.0026/0.2998, allocations: 1.176 MB / 446.8 MB, free: 33.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.2999, allocations: 8.75 kB / 446.8 MB, free: 33.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001171/0.3, allocations: 100.1 kB / 446.9 MB, free: 33.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000153/0.3002, allocations: 80.66 kB / 447 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005976/0.3008, allocations: 485.6 kB / 447.5 MB, free: 32.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/0.3008, allocations: 40.62 kB / 447.5 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.3009, allocations: 58.34 kB / 447.6 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.3022, allocations: 0.7579 MB / 448.3 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.3022, allocations: 3.938 kB / 448.3 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.357e-05/0.3023, allocations: 26.03 kB / 448.3 MB, free: 32.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.3023, allocations: 11.16 kB / 448.4 MB, free: 32.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.3037, allocations: 0.8237 MB / 449.2 MB, free: 32.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003836/0.3076, allocations: 2.084 MB / 451.3 MB, free: 31.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009817/0.3086, allocations: 0.6691 MB / 451.9 MB, free: 31.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006169/0.3092, allocations: 410.3 kB / 452.3 MB, free: 30.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.085e-05/0.3092, allocations: 18.34 kB / 452.4 MB, free: 30.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/0.3093, allocations: 38.34 kB / 452.4 MB, free: 30.8 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006115/0.3099, allocations: 164.8 kB / 452.5 MB, free: 30.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.535e-06/0.3099, allocations: 0 / 452.5 MB, free: 30.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.009893/0.3198, allocations: 2.557 MB / 455.1 MB, free: 29.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.3199, allocations: 58.97 kB / 455.2 MB, free: 29.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008501/0.3208, allocations: 0.4888 MB / 455.7 MB, free: 29.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.672e-05/0.3209, allocations: 40.33 kB / 455.7 MB, free: 29.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002258/0.3211, allocations: 290.6 kB / 456 MB, free: 29.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002434/0.3213, allocations: 244.1 kB / 456.2 MB, free: 29.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003558/0.3217, allocations: 173.1 kB / 456.4 MB, free: 28.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.3219, allocations: 370.3 kB / 456.7 MB, free: 28.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008289/0.3227, allocations: 363.8 kB / 457.1 MB, free: 28.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008858/0.3236, allocations: 0.4901 MB / 457.6 MB, free: 28.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001483/0.3251, allocations: 0.8687 MB / 458.5 MB, free: 27.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.3251, allocations: 1.062 kB / 458.5 MB, free: 27.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.006014/0.3311, allocations: 1.668 MB / 460.1 MB, free: 27.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.3312, allocations: 5.719 kB / 460.1 MB, free: 27.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.3312, allocations: 7.406 kB / 460.1 MB, free: 27.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004576/0.3358, allocations: 0.7259 MB / 460.9 MB, free: 27.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001634/0.3374, allocations: 248.3 kB / 461.1 MB, free: 27.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005895/0.3433, allocations: 4.159 MB / 465.3 MB, free: 23.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008512/0.3442, allocations: 33.38 kB / 465.3 MB, free: 23.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.261e-05/0.3443, allocations: 51.44 kB / 465.4 MB, free: 23.8 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.0003341/0.3447, allocations: 204.2 kB / 465.5 MB, free: 23.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.3448, allocations: 60.91 kB / 465.6 MB, free: 23.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003759/0.3486, allocations: 1.418 MB / 467 MB, free: 23.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/0.3486, allocations: 9.062 kB / 467 MB, free: 23.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3486, allocations: 2.219 kB / 467 MB, free: 23.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.3486, allocations: 4.406 kB / 467 MB, free: 23.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001191/0.3498, allocations: 0.8077 MB / 467.8 MB, free: 22.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.3499, allocations: 0 / 467.8 MB, free: 22.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.351, allocations: 219.4 kB / 468.1 MB, free: 22.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002073/0.3531, allocations: 482.4 kB / 468.5 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.3532, allocations: 25.2 kB / 468.6 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003353/0.3566, allocations: 3.465 MB / 472 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3566, allocations: 0.7031 kB / 472 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004198/0.3608, allocations: 1.802 MB / 473.8 MB, free: 18.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002086/0.361, allocations: 144.5 kB / 474 MB, free: 18.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.3612, allocations: 20.27 kB / 474 MB, free: 18.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005251/0.3617, allocations: 27.47 kB / 474 MB, free: 18.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002122/0.3619, allocations: 70.08 kB / 474.1 MB, free: 18.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.015e-05/0.362, allocations: 23.81 kB / 474.1 MB, free: 18.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003871/0.3624, allocations: 348.2 kB / 474.4 MB, free: 18.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3624, allocations: 0 / 474.4 MB, free: 18.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009263/0.3633, allocations: 244 kB / 474.7 MB, free: 18.32 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.004008/0.3673, allocations: 2.331 MB / 477 MB, free: 16.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003013/0.3704, allocations: 1.284 MB / 478.3 MB, free: 16.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3704, allocations: 192 / 478.3 MB, free: 16.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.3718, allocations: 0.6961 MB / 479 MB, free: 16.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007018/0.3725, allocations: 132.6 kB / 479.1 MB, free: 16.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01737/0.3899, allocations: 8.576 MB / 487.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003353/0.3903, allocations: 0.9356 MB / 488.6 MB, free: 7.945 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005951/0.3909, allocations: 141.3 kB / 488.8 MB, free: 7.805 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003606/0.3912, allocations: 267.3 kB / 489 MB, free: 7.543 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3912, allocations: 0 / 489 MB, free: 7.543 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04292/0.4342, allocations: 19.21 MB / 0.4963 GB, free: 4.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.15, allocations: 5.031 kB / 0.4963 GB, free: 4.664 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002_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_002.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)