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.001134/0.001134, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001114/0.001114, allocations: 195.4 kB / 16.26 MB, free: 6.621 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.158/1.158, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1651/0.1651, allocations: 22.36 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 67.89 kB / 380.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.204/0.2052, allocations: 54.94 MB / 435.4 MB, free: 39.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.003181/0.2084, allocations: 3.802 MB / 439.2 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.2096, allocations: 1.095 MB / 440.3 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.2097, allocations: 9.625 kB / 440.3 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.2099, allocations: 48.97 kB / 440.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003283/0.2102, allocations: 185.2 kB / 440.5 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000367/0.2106, allocations: 189.6 kB / 440.7 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004633/0.2111, allocations: 0.8522 MB / 441.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004425/0.2115, allocations: 0.5843 MB / 442.1 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002443/0.2118, allocations: 410.6 kB / 442.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004171/0.2122, allocations: 0.5734 MB / 443.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.451e-05/0.2123, allocations: 100.7 kB / 443.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001571/0.2125, allocations: 128.2 kB / 443.3 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.2126, allocations: 269.2 kB / 443.6 MB, free: 34.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002353/0.2128, allocations: 430 kB / 444 MB, free: 34.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000508/0.2134, allocations: 1.026 MB / 445 MB, free: 33.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.2134, allocations: 0 / 445 MB, free: 33.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2134, allocations: 0 / 445 MB, free: 33.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.2134, allocations: 0 / 445 MB, free: 33.85 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.001961/0.2154, allocations: 1.098 MB / 446.1 MB, free: 33.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.841e-05/0.2154, allocations: 11.53 kB / 446.1 MB, free: 33.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.485e-05/0.2155, allocations: 98.8 kB / 446.2 MB, free: 33.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.2156, allocations: 68.47 kB / 446.3 MB, free: 33.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004169/0.216, allocations: 461.3 kB / 446.7 MB, free: 32.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.2161, allocations: 44.09 kB / 446.8 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.428e-05/0.2162, allocations: 54.09 kB / 446.8 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001004/0.2172, allocations: 0.7442 MB / 447.6 MB, free: 32.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.2172, allocations: 0 / 447.6 MB, free: 32.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.718e-05/0.2173, allocations: 28.78 kB / 447.6 MB, free: 32.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.2173, allocations: 13.41 kB / 447.6 MB, free: 32.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.2184, allocations: 0.7948 MB / 448.4 MB, free: 32.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003632/0.222, allocations: 2.402 MB / 450.8 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000855/0.2229, allocations: 0.6412 MB / 451.5 MB, free: 30.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006107/0.2235, allocations: 430.4 kB / 451.9 MB, free: 30.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.043e-05/0.2236, allocations: 15.2 kB / 451.9 MB, free: 30.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.402e-05/0.2236, allocations: 38.19 kB / 451.9 MB, free: 30.46 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005184/0.2241, allocations: 164.1 kB / 452.1 MB, free: 30.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 1.924e-06/0.2241, allocations: 0 / 452.1 MB, free: 30.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.008437/0.2326, allocations: 2.371 MB / 454.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.18e-05/0.2326, allocations: 58.94 kB / 454.5 MB, free: 29.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003613/0.233, allocations: 447.5 kB / 455 MB, free: 29.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.387e-05/0.233, allocations: 40.98 kB / 455 MB, free: 29.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.637e-05/0.2331, allocations: 263 kB / 455.3 MB, free: 29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.2333, allocations: 241 kB / 455.5 MB, free: 28.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002196/0.2335, allocations: 160.3 kB / 455.6 MB, free: 28.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.851e-05/0.2336, allocations: 372.3 kB / 456 MB, free: 28.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005193/0.2341, allocations: 336.8 kB / 456.3 MB, free: 28.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005519/0.2346, allocations: 476.6 kB / 456.8 MB, free: 28.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.2358, allocations: 0.8251 MB / 457.6 MB, free: 27.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2358, allocations: 1.375 kB / 457.6 MB, free: 27.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005009/0.2408, allocations: 1.567 MB / 459.2 MB, free: 27.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.2408, allocations: 6.359 kB / 459.2 MB, free: 27.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.413e-06/0.2408, allocations: 3.438 kB / 459.2 MB, free: 27.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004397/0.2452, allocations: 0.8089 MB / 460 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/0.2465, allocations: 247.9 kB / 460.3 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004579/0.2511, allocations: 4.084 MB / 464.3 MB, free: 23.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005609/0.2516, allocations: 30.73 kB / 464.4 MB, free: 23.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.797e-05/0.2517, allocations: 44.73 kB / 464.4 MB, free: 23.68 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.0002159/0.252, allocations: 205.7 kB / 464.6 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.2521, allocations: 59.47 kB / 464.7 MB, free: 23.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003098/0.2552, allocations: 1.317 MB / 466 MB, free: 22.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.2552, allocations: 7.625 kB / 466 MB, free: 22.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2552, allocations: 4.078 kB / 466 MB, free: 22.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.2552, allocations: 8.438 kB / 466 MB, free: 22.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003567/0.2588, allocations: 1.999 MB / 468 MB, free: 22.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2588, allocations: 0 / 468 MB, free: 22.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/0.2599, allocations: 210.2 kB / 468.2 MB, free: 22.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002187/0.2621, allocations: 0.5129 MB / 468.7 MB, free: 21.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-05/0.2621, allocations: 25.03 kB / 468.8 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002713/0.2649, allocations: 3.426 MB / 472.2 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2649, allocations: 0 / 472.2 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003225/0.2681, allocations: 1.652 MB / 473.8 MB, free: 18.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.834e-05/0.2682, allocations: 145 kB / 474 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.778e-05/0.2683, allocations: 20.47 kB / 474 MB, free: 18.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004695/0.2688, allocations: 32.34 kB / 474 MB, free: 18.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.2689, allocations: 62.02 kB / 474.1 MB, free: 18.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.135e-05/0.269, allocations: 22.48 kB / 474.1 MB, free: 18.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002647/0.2692, allocations: 322.7 kB / 474.4 MB, free: 17.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2692, allocations: 0 / 474.4 MB, free: 17.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006232/0.2699, allocations: 231.9 kB / 474.7 MB, free: 17.84 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.003222/0.2731, allocations: 2.189 MB / 476.8 MB, free: 16.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002355/0.2755, allocations: 1.221 MB / 478.1 MB, free: 16.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2755, allocations: 0 / 478.1 MB, free: 16.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.2766, allocations: 0.643 MB / 478.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005504/0.2772, allocations: 129 kB / 478.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01486/0.292, allocations: 8.474 MB / 487.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/0.2923, allocations: 0.9118 MB / 488.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004085/0.2927, allocations: 145.1 kB / 488.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000299/0.293, allocations: 247.3 kB / 488.6 MB, free: 7.637 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.293, allocations: 0 / 488.6 MB, free: 7.637 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03022/0.3232, allocations: 18.02 MB / 0.4948 GB, free: 5.992 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002571/0.3235, allocations: 301 kB / 0.495 GB, free: 5.602 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.044/2.368, allocations: 0 / 0.495 GB, free: 5.602 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)