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_004_LTI.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_004_LTI,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI",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.001104/0.001104, 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.001327/0.001327, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.376/1.376, 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.2212/0.2212, allocations: 22.36 MB / 312.8 MB, free: 12.55 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 59.89 kB / 381 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2648, allocations: 54.94 MB / 435.9 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.0021/0.2669, allocations: 0.9717 MB / 436.9 MB, free: 38.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.268, allocations: 1.213 MB / 438.1 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.896e-05/0.2681, allocations: 2.625 kB / 438.1 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002554/0.2684, allocations: 36.61 kB / 438.1 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001415/0.2685, allocations: 50.09 kB / 438.2 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001401/0.2687, allocations: 71.73 kB / 438.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001855/0.2689, allocations: 195.5 kB / 438.4 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.269, allocations: 33.86 kB / 438.5 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.2691, allocations: 78.11 kB / 438.5 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001502/0.2693, allocations: 93.36 kB / 438.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.039e-05/0.2693, allocations: 7.938 kB / 438.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.195e-05/0.2693, allocations: 8.344 kB / 438.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.522e-05/0.2694, allocations: 42.89 kB / 438.7 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.227e-05/0.2695, allocations: 51.59 kB / 438.7 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001234/0.2696, allocations: 111.1 kB / 438.8 MB, free: 37.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2696, allocations: 0 / 438.8 MB, free: 37.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2696, allocations: 0 / 438.8 MB, free: 37.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.7e-06/0.2696, allocations: 0 / 438.8 MB, free: 37.78 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009453/0.2706, allocations: 0.5003 MB / 439.3 MB, free: 37.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2706, allocations: 10.59 kB / 439.4 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.647e-05/0.2707, allocations: 37.25 kB / 439.4 MB, free: 37.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.86e-05/0.2707, allocations: 16.38 kB / 439.4 MB, free: 37.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004262/0.2711, allocations: 277.5 kB / 439.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.2712, allocations: 3.156 kB / 439.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.2712, allocations: 9.938 kB / 439.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001521/0.2713, allocations: 108.7 kB / 439.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.2714, allocations: 0 / 439.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.2714, allocations: 0 / 439.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2714, allocations: 2.625 kB / 439.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001435/0.2715, allocations: 87.09 kB / 439.9 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005596/0.2721, allocations: 416.6 kB / 440.3 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.2724, allocations: 157.1 kB / 440.4 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.091e-05/0.2725, allocations: 53.36 kB / 440.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.2726, allocations: 0 / 440.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.337e-05/0.2726, allocations: 40.97 kB / 440.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 9.12e-07/0.2726, allocations: 0 / 440.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.002329/0.2749, allocations: 483.9 kB / 441 MB, free: 36.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.333e-05/0.2749, allocations: 51.41 kB / 441.1 MB, free: 36.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00038/0.2753, allocations: 240.7 kB / 441.3 MB, free: 36.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.819e-06/0.2754, allocations: 28.42 kB / 441.3 MB, free: 36.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.521e-05/0.2754, allocations: 112 kB / 441.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.155e-05/0.2754, allocations: 33.72 kB / 441.5 MB, free: 35.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.327e-05/0.2755, allocations: 25.72 kB / 441.5 MB, free: 35.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.476e-05/0.2755, allocations: 325.2 kB / 441.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.684e-05/0.2756, allocations: 43.59 kB / 441.9 MB, free: 35.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.162e-05/0.2757, allocations: 39.14 kB / 441.9 MB, free: 35.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001276/0.2769, allocations: 285 kB / 442.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.277, allocations: 0 / 442.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008463/0.2778, allocations: 245.3 kB / 442.4 MB, free: 35.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.2778, allocations: 6.938 kB / 442.4 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.2778, allocations: 0 / 442.4 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008222/0.2787, allocations: 114 kB / 442.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.112e-05/0.2787, allocations: 14.69 kB / 442.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003104/0.2819, allocations: 1.889 MB / 444.4 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002011/0.2821, allocations: 27.09 kB / 444.5 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.2821, allocations: 6.125 kB / 444.5 MB, free: 33.81 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] A.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001169/0.2822, allocations: 134.6 kB / 444.6 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.8e-05/0.2823, allocations: 15.47 kB / 444.6 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007503/0.283, allocations: 266.7 kB / 444.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.283, allocations: 2.875 kB / 444.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.283, allocations: 3.938 kB / 444.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2831, allocations: 0 / 444.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/0.2833, allocations: 234.9 kB / 445.1 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2833, allocations: 3.938 kB / 445.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.56e-05/0.2833, allocations: 16.11 kB / 445.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005547/0.2839, allocations: 107.4 kB / 445.2 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.2839, allocations: 6.078 kB / 445.2 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002126/0.2861, allocations: 1.805 MB / 447 MB, free: 31.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2861, allocations: 0 / 447 MB, free: 31.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007418/0.2868, allocations: 398.1 kB / 447.4 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.49e-05/0.2869, allocations: 93.69 kB / 447.5 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.279e-05/0.2869, allocations: 10.5 kB / 447.5 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/0.2871, allocations: 26.55 kB / 447.6 MB, free: 31.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.103e-05/0.2872, allocations: 13.77 kB / 447.6 MB, free: 31.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.2872, allocations: 4 kB / 447.6 MB, free: 31.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003201/0.2875, allocations: 184 kB / 447.8 MB, free: 31.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2875, allocations: 0 / 447.8 MB, free: 31.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00028/0.2878, allocations: 30.94 kB / 447.8 MB, free: 31.34 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (A.x_scaled[1],C.x_scaled[1]) * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009816/0.2888, allocations: 0.941 MB / 448.7 MB, free: 30.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003953/0.2892, allocations: 248 kB / 449 MB, free: 30.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2892, allocations: 0 / 449 MB, free: 30.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002093/0.2894, allocations: 200 kB / 449.2 MB, free: 30.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003156/0.2897, allocations: 38.59 kB / 449.2 MB, free: 30.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003648/0.2934, allocations: 2.157 MB / 451.4 MB, free: 28.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001449/0.2936, allocations: 0.7245 MB / 452.1 MB, free: 28.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.692e-05/0.2936, allocations: 27.89 kB / 452.1 MB, free: 28.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.454e-05/0.2937, allocations: 40.11 kB / 452.1 MB, free: 28.07 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2937, allocations: 3.938 kB / 452.2 MB, free: 28.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03065/0.3244, allocations: 4.254 MB / 456.4 MB, free: 27.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.23, allocations: 12.67 kB / 456.4 MB, free: 27.57 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-09 --interface-type ModelExchange --solver CVode --output-interval 0.04 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe 2>&1)