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.000851/0.0008511, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001268/0.001268, allocations: 172.7 kB / 15.95 MB, free: 208 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.351/1.351, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2135/0.2135, allocations: 22.36 MB / 313.4 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003267/0.0003269, allocations: 8 kB / 382.1 MB, free: 10.44 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3031, allocations: 55.97 MB / 438 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.002667/0.3059, allocations: 3.342 MB / 441.4 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.3077, allocations: 1.086 MB / 442.5 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002296/0.3079, allocations: 6.562 kB / 442.5 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001776/0.3081, allocations: 61.69 kB / 442.5 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004339/0.3086, allocations: 225 kB / 442.7 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004539/0.309, allocations: 180.1 kB / 442.9 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006264/0.3097, allocations: 0.8861 MB / 443.8 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005216/0.3102, allocations: 0.537 MB / 444.3 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003126/0.3105, allocations: 385.5 kB / 444.7 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000603/0.3111, allocations: 0.5569 MB / 445.3 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001088/0.3112, allocations: 67 kB / 445.3 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001927/0.3114, allocations: 104.3 kB / 445.4 MB, free: 34.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002023/0.3117, allocations: 241.2 kB / 445.7 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.3118, allocations: 147.8 kB / 445.8 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005349/0.3123, allocations: 0.7882 MB / 446.6 MB, free: 34.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3123, allocations: 0 / 446.6 MB, free: 34.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3123, allocations: 0 / 446.6 MB, free: 34.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.3124, allocations: 6.844 kB / 446.6 MB, free: 34.45 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.002038/0.3144, allocations: 1.02 MB / 447.6 MB, free: 33.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.3145, allocations: 12.81 kB / 447.7 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001091/0.3146, allocations: 99.31 kB / 447.8 MB, free: 33.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.3147, allocations: 73.75 kB / 447.8 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005415/0.3152, allocations: 477.3 kB / 448.3 MB, free: 33.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.869e-05/0.3153, allocations: 39.75 kB / 448.3 MB, free: 33.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.35e-05/0.3154, allocations: 56.78 kB / 448.4 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.3165, allocations: 0.763 MB / 449.1 MB, free: 33.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.3165, allocations: 0 / 449.1 MB, free: 33.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.659e-05/0.3166, allocations: 18.81 kB / 449.2 MB, free: 33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.3166, allocations: 14.75 kB / 449.2 MB, free: 33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.3179, allocations: 0.8224 MB / 450 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00341/0.3213, allocations: 2.078 MB / 452.1 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009216/0.3222, allocations: 0.6725 MB / 452.8 MB, free: 31.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005692/0.3228, allocations: 407.4 kB / 453.1 MB, free: 31.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.211e-05/0.3229, allocations: 14.08 kB / 453.2 MB, free: 31.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.3229, allocations: 41.95 kB / 453.2 MB, free: 31.2 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004908/0.3234, allocations: 150.7 kB / 453.4 MB, free: 31.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.204e-06/0.3234, allocations: 0 / 453.4 MB, free: 31.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.008564/0.332, allocations: 2.524 MB / 455.9 MB, free: 30.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.219e-05/0.332, allocations: 63.06 kB / 455.9 MB, free: 30.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005191/0.3326, allocations: 493.2 kB / 456.4 MB, free: 29.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.993e-05/0.3326, allocations: 37.27 kB / 456.5 MB, free: 29.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.3328, allocations: 289.8 kB / 456.7 MB, free: 29.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.3329, allocations: 253.5 kB / 457 MB, free: 29.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.53e-05/0.333, allocations: 15 kB / 457 MB, free: 29.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.811e-05/0.3331, allocations: 376.7 kB / 457.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006035/0.3337, allocations: 359.7 kB / 457.7 MB, free: 28.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006698/0.3344, allocations: 499 kB / 458.2 MB, free: 28.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006782/0.335, allocations: 428 kB / 458.6 MB, free: 28.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.3351, allocations: 0 / 458.6 MB, free: 28.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005078/0.3401, allocations: 1.625 MB / 460.2 MB, free: 27.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.3402, allocations: 7.188 kB / 460.3 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.3402, allocations: 10.41 kB / 460.3 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003801/0.344, allocations: 0.6815 MB / 460.9 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00142/0.3454, allocations: 248.2 kB / 461.2 MB, free: 27.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005123/0.3506, allocations: 3.896 MB / 465.1 MB, free: 24.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008013/0.3514, allocations: 30.53 kB / 465.1 MB, free: 24.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.462e-05/0.3515, allocations: 45.83 kB / 465.2 MB, free: 24.79 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {2 5,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003236/0.3518, allocations: 204.6 kB / 465.4 MB, free: 24.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.3519, allocations: 60.94 kB / 465.4 MB, free: 24.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003475/0.3554, allocations: 1.392 MB / 466.8 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.3554, allocations: 9.328 kB / 466.8 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3555, allocations: 2.344 kB / 466.8 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.3555, allocations: 4.734 kB / 466.8 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001194/0.3567, allocations: 0.8017 MB / 467.6 MB, free: 23.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.3567, allocations: 5.125 kB / 467.6 MB, free: 23.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/0.3578, allocations: 215.3 kB / 467.8 MB, free: 23.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001974/0.3598, allocations: 452.2 kB / 468.3 MB, free: 23.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.233e-05/0.3599, allocations: 25.56 kB / 468.3 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003181/0.3631, allocations: 3.246 MB / 471.6 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3631, allocations: 112 / 471.6 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003953/0.3671, allocations: 1.775 MB / 473.3 MB, free: 19.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.3673, allocations: 147.5 kB / 473.5 MB, free: 19.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.3674, allocations: 20.53 kB / 473.5 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005203/0.3679, allocations: 36.09 kB / 473.5 MB, free: 19.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.3681, allocations: 66.75 kB / 473.6 MB, free: 19.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.123e-05/0.3682, allocations: 28.95 kB / 473.6 MB, free: 19.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004172/0.3686, allocations: 339.7 kB / 474 MB, free: 19.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.3686, allocations: 0 / 474 MB, free: 19.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009892/0.3696, allocations: 243.2 kB / 474.2 MB, free: 19.53 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003847/0.3734, allocations: 2.304 MB / 476.5 MB, free: 18.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002681/0.3761, allocations: 1.167 MB / 477.7 MB, free: 17.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3762, allocations: 192 / 477.7 MB, free: 17.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001344/0.3775, allocations: 0.6898 MB / 478.4 MB, free: 17.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007125/0.3782, allocations: 137 kB / 478.5 MB, free: 17.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01238/0.3906, allocations: 6.104 MB / 484.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.391, allocations: 0.9434 MB / 485.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006187/0.3916, allocations: 149.3 kB / 485.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003974/0.392, allocations: 263.3 kB / 485.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3921, allocations: 0 / 485.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03945/0.4315, allocations: 17.93 MB / 0.4921 GB, free: 10.83 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003561/0.4319, allocations: 268.9 kB / 0.4923 GB, free: 10.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.284/2.716, allocations: 0 / 0.4923 GB, free: 10.47 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 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) Environment - environmentSimulation: