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.001168/0.001168, 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.001294/0.001294, 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.404/1.404, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1915/0.1915, allocations: 22.34 MB / 313.3 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004007/0.0004008, allocations: 8 kB / 381.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2916, allocations: 55.97 MB / 437.9 MB, free: 39.19 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.002569/0.2942, allocations: 2.582 MB / 440.5 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.2958, allocations: 0.9677 MB / 441.4 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001469/0.2959, allocations: 5.344 kB / 441.5 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001613/0.2961, allocations: 54.22 kB / 441.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003411/0.2964, allocations: 177.7 kB / 441.7 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004213/0.2969, allocations: 143 kB / 441.8 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004419/0.2973, allocations: 447 kB / 442.3 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004459/0.2978, allocations: 321.5 kB / 442.6 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002633/0.2981, allocations: 245.5 kB / 442.8 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000406/0.2985, allocations: 354.5 kB / 443.2 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.743e-05/0.2986, allocations: 44.97 kB / 443.2 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000176/0.2987, allocations: 78.8 kB / 443.3 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001473/0.2989, allocations: 169 kB / 443.4 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.299, allocations: 118 kB / 443.6 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004553/0.2995, allocations: 0.5631 MB / 444.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.2995, allocations: 0 / 444.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2995, allocations: 6.875 kB / 444.1 MB, free: 35.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.2995, allocations: 0 / 444.1 MB, free: 35.53 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.001678/0.3012, allocations: 0.814 MB / 444.9 MB, free: 34.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.3012, allocations: 9.531 kB / 444.9 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001001/0.3013, allocations: 77.27 kB / 445 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.3015, allocations: 60.47 kB / 445.1 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004649/0.3019, allocations: 387.6 kB / 445.5 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.001e-05/0.302, allocations: 32.31 kB / 445.5 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.833e-05/0.3021, allocations: 45.53 kB / 445.5 MB, free: 34.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008906/0.303, allocations: 0.5357 MB / 446.1 MB, free: 34.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.303, allocations: 3.953 kB / 446.1 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.336e-05/0.3031, allocations: 15.06 kB / 446.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.3031, allocations: 11.91 kB / 446.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/0.3041, allocations: 0.5392 MB / 446.6 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003161/0.3073, allocations: 1.542 MB / 448.2 MB, free: 33.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008082/0.3081, allocations: 496.3 kB / 448.7 MB, free: 33.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.601e-05/0.3082, allocations: 10.27 kB / 448.7 MB, free: 33.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.3082, allocations: 37.88 kB / 448.7 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000313/0.3085, allocations: 68.8 kB / 448.8 MB, free: 33.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.695e-06/0.3085, allocations: 0 / 448.8 MB, free: 33.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002848/0.3114, allocations: 1.083 MB / 449.9 MB, free: 32.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.3114, allocations: 61.28 kB / 449.9 MB, free: 32.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004527/0.3119, allocations: 387.3 kB / 450.3 MB, free: 32.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.645e-05/0.312, allocations: 36.33 kB / 450.3 MB, free: 32.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002203/0.3122, allocations: 240.5 kB / 450.6 MB, free: 32.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.3124, allocations: 181.5 kB / 450.8 MB, free: 31.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.221e-05/0.3124, allocations: 10.62 kB / 450.8 MB, free: 31.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.3126, allocations: 355.3 kB / 451.1 MB, free: 31.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004406/0.3131, allocations: 263.6 kB / 451.4 MB, free: 31.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004872/0.3136, allocations: 359.3 kB / 451.7 MB, free: 31.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005419/0.3141, allocations: 308.9 kB / 452 MB, free: 31.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.533e-06/0.3141, allocations: 2.719 kB / 452 MB, free: 31.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001902/0.316, allocations: 0.8429 MB / 452.9 MB, free: 30.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/0.3161, allocations: 5.188 kB / 452.9 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.3161, allocations: 3.359 kB / 452.9 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/0.3173, allocations: 182.4 kB / 453.1 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/0.3185, allocations: 238.9 kB / 453.3 MB, free: 30.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006237/0.3192, allocations: 1.162 MB / 454.4 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00055/0.3197, allocations: 25.94 kB / 454.5 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.01e-05/0.3198, allocations: 37.5 kB / 454.5 MB, free: 29.6 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002602/0.3201, allocations: 179 kB / 454.7 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.264e-05/0.3201, allocations: 48.88 kB / 454.7 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.322, allocations: 0.835 MB / 455.6 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.322, allocations: 5.906 kB / 455.6 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.322, allocations: 0 / 455.6 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.322, allocations: 6.5 kB / 455.6 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007071/0.3227, allocations: 0.6209 MB / 456.2 MB, free: 28.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.3228, allocations: 3.25 kB / 456.2 MB, free: 28.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.3239, allocations: 193.4 kB / 456.4 MB, free: 28.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009592/0.3248, allocations: 179.6 kB / 456.6 MB, free: 28.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-05/0.3249, allocations: 22.84 kB / 456.6 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006056/0.3255, allocations: 1.166 MB / 457.8 MB, free: 27.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3255, allocations: 3.938 kB / 457.8 MB, free: 27.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002222/0.3278, allocations: 1.118 MB / 458.9 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.3279, allocations: 128.4 kB / 459 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.139e-05/0.328, allocations: 16.22 kB / 459 MB, free: 26.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004292/0.3284, allocations: 23.48 kB / 459 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.3286, allocations: 44.11 kB / 459.1 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.275e-05/0.3286, allocations: 22.31 kB / 459.1 MB, free: 26.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002963/0.3289, allocations: 268.6 kB / 459.4 MB, free: 26.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.329, allocations: 0 / 459.4 MB, free: 26.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007127/0.3297, allocations: 173.2 kB / 459.5 MB, free: 26.64 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002172/0.3319, allocations: 1.658 MB / 461.2 MB, free: 25.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.3335, allocations: 0.6785 MB / 461.9 MB, free: 25.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3335, allocations: 0 / 461.9 MB, free: 25.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008176/0.3343, allocations: 361.2 kB / 462.2 MB, free: 25.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005198/0.3349, allocations: 97.56 kB / 462.3 MB, free: 25.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004453/0.3393, allocations: 4.345 MB / 466.7 MB, free: 21.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.3397, allocations: 0.8754 MB / 467.5 MB, free: 21.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004923/0.3402, allocations: 132.3 kB / 467.7 MB, free: 21.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003188/0.3406, allocations: 193.8 kB / 467.9 MB, free: 20.95 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3406, allocations: 0 / 467.9 MB, free: 20.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0708/0.4114, allocations: 12.56 MB / 480.4 MB, free: 17.93 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002727/0.4117, allocations: 264.7 kB / 480.7 MB, free: 17.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.234/2.645, allocations: 3.938 kB / 480.7 MB, free: 17.59 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 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) Environment - environmentSimulation: