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_003.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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003",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.0008072/0.0008073, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001007/0.001007, allocations: 168.7 kB / 15.95 MB, free: 204 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.389/1.389, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2095/0.2095, allocations: 22.35 MB / 313.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004584/0.0004584, allocations: 8 kB / 382.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2921, allocations: 55.97 MB / 438 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.003054/0.2953, allocations: 3.234 MB / 441.3 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.2973, allocations: 1.053 MB / 442.3 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003295/0.2977, allocations: 7.469 kB / 442.3 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002011/0.2979, allocations: 57.02 kB / 442.4 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005008/0.2984, allocations: 210.1 kB / 442.6 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000495/0.2989, allocations: 172.6 kB / 442.8 MB, free: 35.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007177/0.2996, allocations: 0.8403 MB / 443.6 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006584/0.3003, allocations: 0.5209 MB / 444.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004917/0.3008, allocations: 358.9 kB / 444.5 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006493/0.3014, allocations: 0.5362 MB / 445 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001593/0.3016, allocations: 66.12 kB / 445.1 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002229/0.3018, allocations: 88.38 kB / 445.2 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001852/0.302, allocations: 241.8 kB / 445.4 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001516/0.3022, allocations: 144.1 kB / 445.5 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004959/0.3027, allocations: 0.7502 MB / 446.3 MB, free: 34.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3027, allocations: 4 kB / 446.3 MB, free: 34.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3027, allocations: 0 / 446.3 MB, free: 34.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.882e-05/0.3028, allocations: 0 / 446.3 MB, free: 34.52 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.00196/0.3047, allocations: 0.952 MB / 447.2 MB, free: 33.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.3048, allocations: 9.031 kB / 447.2 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001331/0.3049, allocations: 103 kB / 447.3 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.305, allocations: 69.88 kB / 447.4 MB, free: 33.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005212/0.3056, allocations: 445.4 kB / 447.9 MB, free: 33.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.061e-05/0.3056, allocations: 41.72 kB / 447.9 MB, free: 33.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.986e-05/0.3057, allocations: 56.12 kB / 447.9 MB, free: 33.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.3069, allocations: 0.7361 MB / 448.7 MB, free: 33.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.3069, allocations: 3.953 kB / 448.7 MB, free: 33.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.846e-05/0.307, allocations: 30.83 kB / 448.7 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.307, allocations: 14.59 kB / 448.7 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.3082, allocations: 0.7957 MB / 449.5 MB, free: 32.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003892/0.3121, allocations: 2.379 MB / 451.9 MB, free: 31.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009441/0.313, allocations: 0.6279 MB / 452.5 MB, free: 31.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006496/0.3137, allocations: 421 kB / 452.9 MB, free: 31.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.021e-05/0.3138, allocations: 14.8 kB / 453 MB, free: 31.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.715e-05/0.3138, allocations: 37.91 kB / 453 MB, free: 31.21 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004999/0.3143, allocations: 152.2 kB / 453.1 MB, free: 31.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.715e-06/0.3143, allocations: 0 / 453.1 MB, free: 31.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.008093/0.3224, allocations: 2.336 MB / 455.5 MB, free: 30.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.656e-05/0.3225, allocations: 59.22 kB / 455.5 MB, free: 30.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004757/0.3229, allocations: 443.1 kB / 456 MB, free: 30.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.649e-05/0.323, allocations: 43.77 kB / 456 MB, free: 29.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.3231, allocations: 268.5 kB / 456.3 MB, free: 29.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001512/0.3233, allocations: 239.4 kB / 456.5 MB, free: 29.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.512e-05/0.3234, allocations: 19.25 kB / 456.5 MB, free: 29.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.805e-05/0.3234, allocations: 368.9 kB / 456.9 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006274/0.3241, allocations: 336.8 kB / 457.2 MB, free: 29.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006448/0.3247, allocations: 471.8 kB / 457.7 MB, free: 28.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006883/0.3254, allocations: 397.8 kB / 458.1 MB, free: 28.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.3254, allocations: 1.281 kB / 458.1 MB, free: 28.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005085/0.3305, allocations: 1.54 MB / 459.6 MB, free: 28.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.3306, allocations: 6.438 kB / 459.6 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.3306, allocations: 3.344 kB / 459.6 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004342/0.3349, allocations: 0.7596 MB / 460.4 MB, free: 28.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.3363, allocations: 251.7 kB / 460.6 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005069/0.3414, allocations: 3.814 MB / 464.4 MB, free: 25.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008043/0.3422, allocations: 33.27 kB / 464.5 MB, free: 25.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001613/0.3424, allocations: 47.03 kB / 464.5 MB, free: 25 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 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003978/0.3428, allocations: 196.2 kB / 464.7 MB, free: 24.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001472/0.343, allocations: 59.95 kB / 464.8 MB, free: 24.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003447/0.3464, allocations: 1.3 MB / 466.1 MB, free: 24.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.3465, allocations: 8.828 kB / 466.1 MB, free: 24.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.3465, allocations: 2.719 kB / 466.1 MB, free: 24.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.3465, allocations: 4.219 kB / 466.1 MB, free: 24.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004135/0.3506, allocations: 1.974 MB / 468.1 MB, free: 23.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.3507, allocations: 4.969 kB / 468.1 MB, free: 23.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.3517, allocations: 214.8 kB / 468.3 MB, free: 23.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002265/0.354, allocations: 494.3 kB / 468.8 MB, free: 23.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.831e-05/0.3541, allocations: 28.28 kB / 468.8 MB, free: 23.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003022/0.3572, allocations: 3.202 MB / 472 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3572, allocations: 0 / 472 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00358/0.3608, allocations: 1.637 MB / 473.6 MB, free: 19.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001687/0.361, allocations: 138.4 kB / 473.8 MB, free: 19.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.3611, allocations: 20.5 kB / 473.8 MB, free: 19.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004933/0.3616, allocations: 30 kB / 473.8 MB, free: 19.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.3618, allocations: 60.17 kB / 473.9 MB, free: 19.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.205e-05/0.3618, allocations: 23.39 kB / 473.9 MB, free: 19.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003955/0.3622, allocations: 318.5 kB / 474.2 MB, free: 19.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3622, allocations: 1.219 kB / 474.2 MB, free: 19.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009162/0.3632, allocations: 239.2 kB / 474.4 MB, free: 19.39 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 (65): * Single equations (assignments): 62 * 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 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003476/0.3666, allocations: 2.171 MB / 476.6 MB, free: 18.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002419/0.3691, allocations: 1.105 MB / 477.7 MB, free: 17.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3691, allocations: 1.062 kB / 477.7 MB, free: 17.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.3703, allocations: 0.645 MB / 478.4 MB, free: 17.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007189/0.3711, allocations: 122.4 kB / 478.5 MB, free: 17.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01189/0.383, allocations: 5.79 MB / 484.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.3834, allocations: 0.9235 MB / 485.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005853/0.384, allocations: 145.1 kB / 485.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003759/0.3844, allocations: 243.3 kB / 485.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3844, allocations: 0 / 485.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03025/0.4146, allocations: 17.07 MB / 0.4909 GB, free: 12.02 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002796/0.4149, allocations: 265.7 kB / 0.4911 GB, free: 11.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.276/2.691, allocations: 0 / 0.4911 GB, free: 11.66 MB / 366.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.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_003_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1) Environment - environmentSimulation: