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.0009897/0.0009898, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0009704/0.0009704, allocations: 195 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.174/1.174, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1677/0.1677, allocations: 22.35 MB / 312.3 MB, free: 12.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 63.91 kB / 380.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2146, allocations: 54.94 MB / 435.2 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.003342/0.218, allocations: 3.803 MB / 439 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.2192, allocations: 1.092 MB / 440.1 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.2193, allocations: 4.969 kB / 440.1 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.2195, allocations: 60.81 kB / 440.1 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003016/0.2198, allocations: 181.6 kB / 440.3 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003427/0.2201, allocations: 190.2 kB / 440.5 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004769/0.2206, allocations: 0.9299 MB / 441.4 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004119/0.221, allocations: 0.5394 MB / 442 MB, free: 35.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.2213, allocations: 377.1 kB / 442.3 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004107/0.2217, allocations: 0.5551 MB / 442.9 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.834e-05/0.2218, allocations: 74.14 kB / 443 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001706/0.222, allocations: 96.17 kB / 443 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001402/0.2221, allocations: 241.7 kB / 443.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002481/0.2224, allocations: 405.5 kB / 443.7 MB, free: 34.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005041/0.2229, allocations: 1.009 MB / 444.7 MB, free: 34.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2229, allocations: 0 / 444.7 MB, free: 34.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.21e-07/0.2229, allocations: 0 / 444.7 MB, free: 34.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.2229, allocations: 0 / 444.7 MB, free: 34.11 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.00203/0.2249, allocations: 1.093 MB / 445.8 MB, free: 33.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.065e-05/0.225, allocations: 19.44 kB / 445.8 MB, free: 33.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.401e-05/0.2251, allocations: 97.58 kB / 445.9 MB, free: 33.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.2252, allocations: 75.03 kB / 446 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.2256, allocations: 456.8 kB / 446.4 MB, free: 32.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/0.2257, allocations: 42 kB / 446.5 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.195e-05/0.2258, allocations: 52.84 kB / 446.5 MB, free: 32.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009913/0.2268, allocations: 0.739 MB / 447.2 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.2268, allocations: 0 / 447.2 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.628e-05/0.2269, allocations: 34.22 kB / 447.3 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.2269, allocations: 14.97 kB / 447.3 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001118/0.228, allocations: 0.8023 MB / 448.1 MB, free: 32.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003744/0.2318, allocations: 2.398 MB / 450.5 MB, free: 31.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008785/0.2326, allocations: 0.6337 MB / 451.1 MB, free: 30.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006265/0.2333, allocations: 426.3 kB / 451.5 MB, free: 30.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.701e-05/0.2333, allocations: 19.31 kB / 451.6 MB, free: 30.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.529e-05/0.2334, allocations: 46.28 kB / 451.6 MB, free: 30.71 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005199/0.2339, allocations: 153.7 kB / 451.8 MB, free: 30.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 1.753e-06/0.2339, allocations: 0 / 451.8 MB, free: 30.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.00836/0.2423, allocations: 2.375 MB / 454.1 MB, free: 29.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.2423, allocations: 58.72 kB / 454.2 MB, free: 29.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004294/0.2427, allocations: 446.5 kB / 454.6 MB, free: 29.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.339e-05/0.2428, allocations: 43.81 kB / 454.7 MB, free: 29.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.2429, allocations: 259.3 kB / 454.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.2431, allocations: 233.5 kB / 455.2 MB, free: 29.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002574/0.2433, allocations: 162.1 kB / 455.3 MB, free: 29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.103e-05/0.2434, allocations: 375.6 kB / 455.7 MB, free: 28.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005904/0.244, allocations: 335.4 kB / 456 MB, free: 28.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006074/0.2446, allocations: 471.2 kB / 456.5 MB, free: 28.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001167/0.2458, allocations: 0.8258 MB / 457.3 MB, free: 27.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.2458, allocations: 1.188 kB / 457.3 MB, free: 27.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005049/0.2509, allocations: 1.567 MB / 458.9 MB, free: 27.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.2509, allocations: 6.484 kB / 458.9 MB, free: 27.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.2509, allocations: 3.281 kB / 458.9 MB, free: 27.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004495/0.2554, allocations: 0.8085 MB / 459.7 MB, free: 27.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/0.2567, allocations: 248.8 kB / 459.9 MB, free: 27.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004614/0.2613, allocations: 3.849 MB / 463.8 MB, free: 24.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005657/0.2619, allocations: 30.14 kB / 463.8 MB, free: 24.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.883e-05/0.262, allocations: 40.94 kB / 463.8 MB, free: 24.14 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000225/0.2622, allocations: 203.8 kB / 464 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.2623, allocations: 61.94 kB / 464.1 MB, free: 23.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003177/0.2655, allocations: 1.304 MB / 465.4 MB, free: 23.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.2655, allocations: 8.656 kB / 465.4 MB, free: 23.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2655, allocations: 6.609 kB / 465.4 MB, free: 23.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.2655, allocations: 12.61 kB / 465.4 MB, free: 23.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003721/0.2693, allocations: 2.007 MB / 467.4 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.2693, allocations: 1.906 kB / 467.4 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/0.2703, allocations: 206.1 kB / 467.6 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002285/0.2726, allocations: 0.5187 MB / 468.2 MB, free: 22.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.42e-05/0.2727, allocations: 28.47 kB / 468.2 MB, free: 22.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003026/0.2757, allocations: 3.22 MB / 471.4 MB, free: 19.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2758, allocations: 0 / 471.4 MB, free: 19.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003522/0.2793, allocations: 1.652 MB / 473.1 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.197e-05/0.2794, allocations: 141.3 kB / 473.2 MB, free: 18.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.965e-05/0.2795, allocations: 19.95 kB / 473.2 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004786/0.28, allocations: 26.95 kB / 473.2 MB, free: 18.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.2801, allocations: 60.5 kB / 473.3 MB, free: 18.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.359e-05/0.2802, allocations: 27.39 kB / 473.3 MB, free: 18.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003082/0.2805, allocations: 317.5 kB / 473.6 MB, free: 18.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2805, allocations: 0 / 473.6 MB, free: 18.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006884/0.2812, allocations: 232.1 kB / 473.9 MB, free: 18.5 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003407/0.2846, allocations: 2.182 MB / 476 MB, free: 17.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002097/0.2867, allocations: 1.116 MB / 477.2 MB, free: 16.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2867, allocations: 0 / 477.2 MB, free: 16.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.2879, allocations: 0.6405 MB / 477.8 MB, free: 16.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005765/0.2885, allocations: 122.5 kB / 477.9 MB, free: 16.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/0.3039, allocations: 8.477 MB / 486.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.3041, allocations: 0.9274 MB / 487.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004424/0.3046, allocations: 137.2 kB / 487.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003129/0.3049, allocations: 243.3 kB / 487.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3049, allocations: 0 / 487.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2034/0.5084, allocations: 17.31 MB / 0.4932 GB, free: 7.461 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003182/0.5087, allocations: 288 kB / 0.4934 GB, free: 7.078 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.313/2.822, allocations: 0 / 0.4934 GB, free: 7.078 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/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)