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.001278/0.001278, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001484/0.001484, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 223.2 MB / 239.9 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2196/0.2196, allocations: 22.34 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003512/0.0003514, allocations: 8 kB / 381.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3083, allocations: 55.97 MB / 437.9 MB, free: 39.21 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.001144/0.3095, allocations: 0.6748 MB / 438.6 MB, free: 38.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.3109, allocations: 1.184 MB / 439.8 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.157e-05/0.311, allocations: 0 / 439.8 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003356/0.3113, allocations: 32.8 kB / 439.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.3115, allocations: 48.75 kB / 439.8 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000163/0.3117, allocations: 49.11 kB / 439.9 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001693/0.3118, allocations: 107.9 kB / 440 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.312, allocations: 29.25 kB / 440 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.3121, allocations: 93.27 kB / 440.1 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001488/0.3123, allocations: 78.84 kB / 440.2 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.154e-05/0.3123, allocations: 5.531 kB / 440.2 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.988e-05/0.3123, allocations: 2.531 kB / 440.2 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.436e-05/0.3124, allocations: 29.38 kB / 440.2 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.132e-05/0.3124, allocations: 38.64 kB / 440.3 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001166/0.3125, allocations: 77.98 kB / 440.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.3126, allocations: 0 / 440.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3126, allocations: 0 / 440.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.3126, allocations: 0 / 440.3 MB, free: 37.65 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.0009646/0.3135, allocations: 499.4 kB / 440.8 MB, free: 37.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.3136, allocations: 7.938 kB / 440.8 MB, free: 37.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.556e-05/0.3137, allocations: 40.86 kB / 440.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.132e-05/0.3137, allocations: 15.88 kB / 440.9 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004645/0.3142, allocations: 265.1 kB / 441.1 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.3142, allocations: 6.938 kB / 441.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.3142, allocations: 9.562 kB / 441.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001656/0.3144, allocations: 97.19 kB / 441.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.3144, allocations: 7.891 kB / 441.3 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.3144, allocations: 4 kB / 441.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.3144, allocations: 2.875 kB / 441.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001484/0.3146, allocations: 80.16 kB / 441.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006663/0.3153, allocations: 420 kB / 441.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003672/0.3156, allocations: 147.4 kB / 441.9 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.3157, allocations: 10.47 kB / 441.9 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.3157, allocations: 34.56 kB / 442 MB, free: 36.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.3157, allocations: 0 / 442 MB, free: 36.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.002346/0.3181, allocations: 488.4 kB / 442.4 MB, free: 36.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/0.3181, allocations: 57.95 kB / 442.5 MB, free: 36.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004092/0.3185, allocations: 238.4 kB / 442.7 MB, free: 36.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.3186, allocations: 25.7 kB / 442.7 MB, free: 36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.256e-05/0.3186, allocations: 112 kB / 442.9 MB, free: 35.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.075e-05/0.3187, allocations: 33.06 kB / 442.9 MB, free: 35.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.434e-06/0.3187, allocations: 0 / 442.9 MB, free: 35.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.393e-05/0.3188, allocations: 328.7 kB / 443.2 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.679e-05/0.3189, allocations: 29.2 kB / 443.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.609e-05/0.3189, allocations: 44.34 kB / 443.3 MB, free: 35.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.407e-05/0.319, allocations: 51.47 kB / 443.3 MB, free: 35.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.319, allocations: 0 / 443.3 MB, free: 35.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008405/0.3199, allocations: 236.9 kB / 443.6 MB, free: 35.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.3199, allocations: 5.688 kB / 443.6 MB, free: 35.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3199, allocations: 3.938 kB / 443.6 MB, free: 35.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008437/0.3208, allocations: 121.8 kB / 443.7 MB, free: 35.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.342e-05/0.3208, allocations: 9.406 kB / 443.7 MB, free: 35.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003081/0.3239, allocations: 1.782 MB / 445.5 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001852/0.3241, allocations: 27.91 kB / 445.5 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.3241, allocations: 6.906 kB / 445.5 MB, free: 33.91 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001155/0.3243, allocations: 135.4 kB / 445.6 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.33e-05/0.3243, allocations: 17.27 kB / 445.7 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007285/0.325, allocations: 268.2 kB / 445.9 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3251, allocations: 2.938 kB / 445.9 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.3251, allocations: 3.953 kB / 445.9 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3251, allocations: 0 / 445.9 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/0.3253, allocations: 238.9 kB / 446.2 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3253, allocations: 4 kB / 446.2 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.545e-05/0.3254, allocations: 12.09 kB / 446.2 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005501/0.3259, allocations: 108.8 kB / 446.3 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.326, allocations: 7.375 kB / 446.3 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002/0.328, allocations: 1.719 MB / 448 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.328, allocations: 3.953 kB / 448 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007486/0.3287, allocations: 398.9 kB / 448.4 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.398e-05/0.3288, allocations: 95.2 kB / 448.5 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.21e-05/0.3288, allocations: 7.938 kB / 448.5 MB, free: 31.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.329, allocations: 24.17 kB / 448.5 MB, free: 31.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.056e-05/0.3291, allocations: 13.72 kB / 448.5 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-06/0.3291, allocations: 3.156 kB / 448.5 MB, free: 31.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003135/0.3294, allocations: 194.2 kB / 448.7 MB, free: 31.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3294, allocations: 0 / 448.7 MB, free: 31.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002791/0.3297, allocations: 30.31 kB / 448.8 MB, free: 31.52 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008834/0.3306, allocations: 0.9286 MB / 449.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003433/0.3309, allocations: 248.3 kB / 449.9 MB, free: 30.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3309, allocations: 0 / 449.9 MB, free: 30.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001784/0.3311, allocations: 190.7 kB / 450.1 MB, free: 30.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.3314, allocations: 21.45 kB / 450.1 MB, free: 30.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002397/0.3338, allocations: 1.161 MB / 451.3 MB, free: 29.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001394/0.3339, allocations: 0.7386 MB / 452 MB, free: 29.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.823e-05/0.334, allocations: 24.05 kB / 452.1 MB, free: 29.17 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.256e-05/0.3341, allocations: 37.92 kB / 452.1 MB, free: 29.14 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3341, allocations: 0 / 452.1 MB, free: 29.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01386/0.3479, allocations: 3.907 MB / 456 MB, free: 28.88 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001565/0.3481, allocations: 259.7 kB / 456.3 MB, free: 28.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.809/2.157, allocations: 0 / 456.3 MB, free: 28.52 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-09 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) Environment - environmentSimulation: