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.0008126/0.0008124, allocations: 87.84 kB / 15.06 MB, free: 1.082 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.0009129/0.0009128, allocations: 176.7 kB / 15.96 MB, free: 196 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.349/1.349, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2394/0.2394, allocations: 22.35 MB / 313.4 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003151/0.0003151, allocations: 8 kB / 382.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3121, allocations: 55.97 MB / 438 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.002307/0.3145, allocations: 2.782 MB / 440.8 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.3158, allocations: 0.9392 MB / 441.7 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.3159, allocations: 9.844 kB / 441.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.3161, allocations: 46.23 kB / 441.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003431/0.3164, allocations: 186.4 kB / 442 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003558/0.3168, allocations: 147.8 kB / 442.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004977/0.3173, allocations: 0.7027 MB / 442.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003709/0.3177, allocations: 329 kB / 443.1 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002298/0.3179, allocations: 270.5 kB / 443.4 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003946/0.3183, allocations: 391.7 kB / 443.8 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.38e-05/0.3184, allocations: 43.59 kB / 443.8 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001829/0.3186, allocations: 70.28 kB / 443.9 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000149/0.3187, allocations: 183.5 kB / 444.1 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.551e-05/0.3188, allocations: 123.9 kB / 444.2 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003931/0.3192, allocations: 0.5641 MB / 444.8 MB, free: 35.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3193, allocations: 0 / 444.8 MB, free: 35.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3193, allocations: 0 / 444.8 MB, free: 35.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.934e-06/0.3193, allocations: 0 / 444.8 MB, free: 35.39 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.001498/0.3208, allocations: 0.826 MB / 445.6 MB, free: 34.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.3208, allocations: 10.94 kB / 445.6 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.885e-05/0.3209, allocations: 76.97 kB / 445.7 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.321, allocations: 56.44 kB / 445.7 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004166/0.3215, allocations: 378.3 kB / 446.1 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.3215, allocations: 29.03 kB / 446.1 MB, free: 34.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.796e-05/0.3216, allocations: 56.88 kB / 446.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008753/0.3225, allocations: 0.5405 MB / 446.7 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.3225, allocations: 7.953 kB / 446.7 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.889e-05/0.3225, allocations: 17.84 kB / 446.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.3226, allocations: 9.562 kB / 446.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008389/0.3234, allocations: 0.5409 MB / 447.3 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002552/0.326, allocations: 1.534 MB / 448.8 MB, free: 33.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007874/0.3268, allocations: 0.4884 MB / 449.3 MB, free: 33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004225/0.3272, allocations: 261 kB / 449.6 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.321e-05/0.3273, allocations: 12.98 kB / 449.6 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.823e-05/0.3273, allocations: 39.41 kB / 449.6 MB, free: 32.85 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002262/0.3275, allocations: 64.94 kB / 449.7 MB, free: 32.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.733e-06/0.3275, allocations: 0 / 449.7 MB, free: 32.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002484/0.33, allocations: 1.087 MB / 450.8 MB, free: 32.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.62e-05/0.3301, allocations: 61.09 kB / 450.8 MB, free: 32.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003272/0.3304, allocations: 389 kB / 451.2 MB, free: 32.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/0.3304, allocations: 34.47 kB / 451.3 MB, free: 31.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.3306, allocations: 238.1 kB / 451.5 MB, free: 31.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.3307, allocations: 181.7 kB / 451.7 MB, free: 31.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.62e-05/0.3307, allocations: 12 kB / 451.7 MB, free: 31.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.032e-05/0.3308, allocations: 358.2 kB / 452 MB, free: 31.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004058/0.3312, allocations: 256 kB / 452.3 MB, free: 31.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004677/0.3317, allocations: 368 kB / 452.6 MB, free: 31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004889/0.3322, allocations: 307.3 kB / 452.9 MB, free: 30.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.3322, allocations: 4 kB / 452.9 MB, free: 30.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001772/0.334, allocations: 0.8464 MB / 453.8 MB, free: 30.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.334, allocations: 9 kB / 453.8 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.334, allocations: 3.031 kB / 453.8 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001064/0.3351, allocations: 184.2 kB / 454 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.3363, allocations: 242.3 kB / 454.2 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000661/0.337, allocations: 1.158 MB / 455.4 MB, free: 29.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004861/0.3375, allocations: 27.2 kB / 455.4 MB, free: 29.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.346e-05/0.3375, allocations: 29.95 kB / 455.4 MB, free: 29.34 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.0002283/0.3378, allocations: 186 kB / 455.6 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.098e-05/0.3379, allocations: 49.88 kB / 455.7 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001806/0.3397, allocations: 0.8174 MB / 456.5 MB, free: 28.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.3397, allocations: 7.344 kB / 456.5 MB, free: 28.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.719e-06/0.3397, allocations: 3.188 kB / 456.5 MB, free: 28.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.3397, allocations: 3.422 kB / 456.5 MB, free: 28.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002687/0.3424, allocations: 1.457 MB / 457.9 MB, free: 28.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.3425, allocations: 4 kB / 458 MB, free: 28.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.3435, allocations: 199.2 kB / 458.1 MB, free: 28.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008152/0.3443, allocations: 181.2 kB / 458.3 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-05/0.3444, allocations: 22.89 kB / 458.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005891/0.345, allocations: 1.157 MB / 459.5 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.345, allocations: 3.938 kB / 459.5 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002111/0.3471, allocations: 1.129 MB / 460.6 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001548/0.3473, allocations: 129.3 kB / 460.8 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.3474, allocations: 13.75 kB / 460.8 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003928/0.3478, allocations: 30.38 kB / 460.8 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.3479, allocations: 42.31 kB / 460.8 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.244e-05/0.348, allocations: 18.53 kB / 460.9 MB, free: 26.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002908/0.3483, allocations: 272.6 kB / 461.1 MB, free: 26.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3483, allocations: 1.125 kB / 461.1 MB, free: 26.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006229/0.3489, allocations: 172.8 kB / 461.3 MB, free: 26 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.001964/0.3509, allocations: 1.624 MB / 462.9 MB, free: 24.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001564/0.3524, allocations: 0.6727 MB / 463.6 MB, free: 24.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3525, allocations: 0 / 463.6 MB, free: 24.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009275/0.3534, allocations: 358.9 kB / 463.9 MB, free: 24.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007259/0.3541, allocations: 118.9 kB / 464.1 MB, free: 24.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007861/0.362, allocations: 4.457 MB / 468.5 MB, free: 22.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.3624, allocations: 0.869 MB / 469.4 MB, free: 21.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005352/0.3629, allocations: 134.5 kB / 469.5 MB, free: 21.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000325/0.3633, allocations: 194.3 kB / 469.7 MB, free: 21.39 MB / 350.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3633, allocations: 0 / 469.7 MB, free: 21.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0347/0.398, allocations: 12.92 MB / 482.6 MB, free: 16.38 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001502/0.3982, allocations: 269.6 kB / 482.9 MB, free: 16.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.082/2.481, allocations: 0 / 482.9 MB, free: 16.02 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: