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_001.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_001,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001",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.001673/0.001673, allocations: 108 kB / 15.61 MB, free: 148 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.001382/0.001383, allocations: 196.5 kB / 16.53 MB, free: 6.656 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.373/1.373, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2296/0.2296, allocations: 22.35 MB / 312.7 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002067/0.002067, allocations: 63.89 kB / 380.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2769, allocations: 54.94 MB / 435.9 MB, free: 39.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.003334/0.2803, allocations: 3.022 MB / 438.9 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.2817, allocations: 0.9344 MB / 439.8 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001624/0.2819, allocations: 2.844 kB / 439.8 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001735/0.2821, allocations: 65.62 kB / 439.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003513/0.2825, allocations: 175.6 kB / 440.1 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00045/0.2829, allocations: 187.5 kB / 440.3 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005089/0.2834, allocations: 0.7138 MB / 441 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004327/0.2839, allocations: 401.7 kB / 441.4 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002466/0.2841, allocations: 292 kB / 441.7 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000382/0.2845, allocations: 412.9 kB / 442.1 MB, free: 36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.176e-05/0.2846, allocations: 68 kB / 442.1 MB, free: 36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.2848, allocations: 102.6 kB / 442.2 MB, free: 35.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001395/0.285, allocations: 204.2 kB / 442.4 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002567/0.2852, allocations: 332.1 kB / 442.8 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005604/0.2858, allocations: 0.7664 MB / 443.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2858, allocations: 0 / 443.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2858, allocations: 4 kB / 443.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.2858, allocations: 0 / 443.5 MB, free: 35.4 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.00194/0.2878, allocations: 0.9213 MB / 444.4 MB, free: 34.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.2878, allocations: 8.562 kB / 444.5 MB, free: 34.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.2879, allocations: 79.66 kB / 444.5 MB, free: 34.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/0.2881, allocations: 56.97 kB / 444.6 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004111/0.2885, allocations: 392.7 kB / 445 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.046e-05/0.2885, allocations: 35.66 kB / 445 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.168e-05/0.2886, allocations: 42 kB / 445 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008072/0.2894, allocations: 0.5529 MB / 445.6 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.2894, allocations: 0 / 445.6 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.298e-05/0.2895, allocations: 18.92 kB / 445.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.2895, allocations: 8.688 kB / 445.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008454/0.2904, allocations: 0.5355 MB / 446.2 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002583/0.293, allocations: 1.537 MB / 447.7 MB, free: 33.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007296/0.2937, allocations: 493.9 kB / 448.2 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004345/0.2942, allocations: 264.8 kB / 448.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.953e-05/0.2942, allocations: 10.59 kB / 448.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.541e-05/0.2942, allocations: 41.56 kB / 448.5 MB, free: 32.8 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002444/0.2945, allocations: 66.09 kB / 448.6 MB, free: 32.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.394e-06/0.2945, allocations: 0 / 448.6 MB, free: 32.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002684/0.2972, allocations: 1.082 MB / 449.6 MB, free: 32.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.468e-05/0.2972, allocations: 65.03 kB / 449.7 MB, free: 32.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003164/0.2975, allocations: 393.2 kB / 450.1 MB, free: 31.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.044e-05/0.2976, allocations: 37.64 kB / 450.1 MB, free: 31.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.71e-05/0.2977, allocations: 244.4 kB / 450.4 MB, free: 31.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.2978, allocations: 180.7 kB / 450.5 MB, free: 31.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001969/0.298, allocations: 118.2 kB / 450.6 MB, free: 31.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.114e-05/0.2981, allocations: 355.1 kB / 451 MB, free: 31.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004046/0.2985, allocations: 258.6 kB / 451.2 MB, free: 31.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004349/0.2989, allocations: 374.1 kB / 451.6 MB, free: 30.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008433/0.2998, allocations: 0.6211 MB / 452.2 MB, free: 30.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.2998, allocations: 7.125 kB / 452.2 MB, free: 30.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001764/0.3016, allocations: 0.8553 MB / 453.1 MB, free: 30.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.3016, allocations: 6.406 kB / 453.1 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.3016, allocations: 7.375 kB / 453.1 MB, free: 30.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001119/0.3027, allocations: 175.5 kB / 453.3 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.3039, allocations: 242 kB / 453.5 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000573/0.3045, allocations: 1.153 MB / 454.7 MB, free: 29.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004765/0.305, allocations: 24.23 kB / 454.7 MB, free: 29.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.824e-05/0.3051, allocations: 30.02 kB / 454.7 MB, free: 29.02 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002052/0.3053, allocations: 191.7 kB / 454.9 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.978e-05/0.3054, allocations: 45.12 kB / 455 MB, free: 28.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00182/0.3072, allocations: 0.8279 MB / 455.8 MB, free: 28.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.3072, allocations: 10.59 kB / 455.8 MB, free: 28.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3072, allocations: 0 / 455.8 MB, free: 28.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.3073, allocations: 8.156 kB / 455.8 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.3096, allocations: 1.459 MB / 457.3 MB, free: 27.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.3096, allocations: 0 / 457.3 MB, free: 27.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.3107, allocations: 204.7 kB / 457.5 MB, free: 27.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008058/0.3115, allocations: 161.6 kB / 457.6 MB, free: 27.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.36e-05/0.3116, allocations: 17.59 kB / 457.6 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006041/0.3122, allocations: 1.163 MB / 458.8 MB, free: 26.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3122, allocations: 4.062 kB / 458.8 MB, free: 26.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002199/0.3144, allocations: 1.135 MB / 459.9 MB, free: 26.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001464/0.3146, allocations: 120.7 kB / 460.1 MB, free: 25.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.563e-05/0.3147, allocations: 16.73 kB / 460.1 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003972/0.3151, allocations: 22.28 kB / 460.1 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.3152, allocations: 44.58 kB / 460.1 MB, free: 25.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-05/0.3152, allocations: 19.52 kB / 460.2 MB, free: 25.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003327/0.3156, allocations: 269.4 kB / 460.4 MB, free: 25.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3156, allocations: 5.156 kB / 460.4 MB, free: 25.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006541/0.3163, allocations: 165.5 kB / 460.6 MB, free: 25.69 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 (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002313/0.3186, allocations: 1.645 MB / 462.2 MB, free: 24.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001879/0.3205, allocations: 0.7708 MB / 463 MB, free: 24.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3205, allocations: 1.594 kB / 463 MB, free: 24.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008075/0.3213, allocations: 370.9 kB / 463.4 MB, free: 24.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006316/0.3219, allocations: 118 kB / 463.5 MB, free: 24.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00998/0.3319, allocations: 6.056 MB / 469.5 MB, free: 20.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.3323, allocations: 0.8681 MB / 470.4 MB, free: 20.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005423/0.3329, allocations: 132.4 kB / 470.5 MB, free: 20.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003092/0.3332, allocations: 193.5 kB / 470.7 MB, free: 19.93 MB / 350.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3332, allocations: 0 / 470.7 MB, free: 19.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03961/0.3728, allocations: 13.82 MB / 484.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.66, allocations: 12.88 kB / 484.6 MB, free: 12.76 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001_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_001.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)