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_002.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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002",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.0007906/0.0007907, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.004643/0.004643, allocations: 170 kB / 16.26 MB, free: 6.613 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.124/1.124, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1667/0.1667, allocations: 22.35 MB / 313.8 MB, free: 13.03 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002483/0.0002483, allocations: 8 kB / 382.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1912/0.1914, allocations: 55.98 MB / 438.7 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.002239/0.1937, allocations: 3.532 MB / 442.2 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.1949, allocations: 1.12 MB / 443.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.195, allocations: 5.5 kB / 443.4 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.1952, allocations: 56.73 kB / 443.4 MB, free: 35.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003277/0.1955, allocations: 191.8 kB / 443.6 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003453/0.1959, allocations: 197.8 kB / 443.8 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005269/0.1964, allocations: 0.9939 MB / 444.8 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004451/0.1969, allocations: 0.5482 MB / 445.3 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002471/0.1971, allocations: 386 kB / 445.7 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004438/0.1976, allocations: 0.5768 MB / 446.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.936e-05/0.1977, allocations: 65.41 kB / 446.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001489/0.1978, allocations: 92.83 kB / 446.4 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.198, allocations: 244.3 kB / 446.7 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002444/0.1982, allocations: 445.8 kB / 447.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000502/0.1987, allocations: 1.03 MB / 448.1 MB, free: 34.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1987, allocations: 4 kB / 448.1 MB, free: 34.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1987, allocations: 0 / 448.1 MB, free: 34.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.1988, allocations: 0 / 448.1 MB, free: 34.03 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.00183/0.2006, allocations: 1.015 MB / 449.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.914e-05/0.2006, allocations: 12.47 kB / 449.2 MB, free: 33.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.608e-05/0.2007, allocations: 95.94 kB / 449.3 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.2008, allocations: 77.09 kB / 449.3 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004412/0.2013, allocations: 487 kB / 449.8 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.2013, allocations: 53.22 kB / 449.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.2014, allocations: 54.53 kB / 449.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.2024, allocations: 0.7645 MB / 450.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.2025, allocations: 0 / 450.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.873e-05/0.2025, allocations: 20.88 kB / 450.7 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.2025, allocations: 12.91 kB / 450.7 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.2037, allocations: 0.8263 MB / 451.5 MB, free: 32.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003059/0.2067, allocations: 2.084 MB / 453.6 MB, free: 31.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008227/0.2076, allocations: 0.6674 MB / 454.3 MB, free: 30.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005037/0.2081, allocations: 409.8 kB / 454.7 MB, free: 30.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.899e-05/0.2081, allocations: 18.95 kB / 454.7 MB, free: 30.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.646e-05/0.2082, allocations: 41.69 kB / 454.8 MB, free: 30.76 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004695/0.2086, allocations: 148.4 kB / 454.9 MB, free: 30.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 1.773e-06/0.2086, allocations: 0 / 454.9 MB, free: 30.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.009113/0.2178, allocations: 2.532 MB / 457.4 MB, free: 29.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.446e-05/0.2178, allocations: 58.69 kB / 457.5 MB, free: 29.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004388/0.2182, allocations: 0.4889 MB / 458 MB, free: 29.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.473e-05/0.2183, allocations: 36.89 kB / 458 MB, free: 29.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.2184, allocations: 289.1 kB / 458.3 MB, free: 29.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.2186, allocations: 252.9 kB / 458.5 MB, free: 29.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.747e-05/0.2187, allocations: 67.81 kB / 458.6 MB, free: 28.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.33e-05/0.2188, allocations: 377.4 kB / 459 MB, free: 28.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005656/0.2193, allocations: 372 kB / 459.3 MB, free: 28.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006065/0.2199, allocations: 494 kB / 459.8 MB, free: 28.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/0.2211, allocations: 0.8731 MB / 460.7 MB, free: 27.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2211, allocations: 1.156 kB / 460.7 MB, free: 27.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005061/0.2262, allocations: 1.631 MB / 462.3 MB, free: 27.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.2262, allocations: 8.438 kB / 462.3 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.2262, allocations: 2.344 kB / 462.3 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003806/0.23, allocations: 0.6809 MB / 463 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.2312, allocations: 256.5 kB / 463.3 MB, free: 27.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004461/0.2357, allocations: 3.895 MB / 467.2 MB, free: 24.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005782/0.2363, allocations: 39.05 kB / 467.2 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.397e-05/0.2364, allocations: 42.27 kB / 467.3 MB, free: 24.04 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 {(2,5), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002278/0.2366, allocations: 208.1 kB / 467.5 MB, free: 23.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.831e-05/0.2367, allocations: 65.34 kB / 467.5 MB, free: 23.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/0.24, allocations: 1.399 MB / 468.9 MB, free: 23.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.24, allocations: 9.438 kB / 468.9 MB, free: 23.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.24, allocations: 2.344 kB / 468.9 MB, free: 23.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.24, allocations: 4.922 kB / 468.9 MB, free: 23.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008343/0.2409, allocations: 0.8067 MB / 469.7 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2409, allocations: 0 / 469.7 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.2419, allocations: 214.7 kB / 469.9 MB, free: 22.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001918/0.2439, allocations: 450.9 kB / 470.4 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-05/0.2439, allocations: 29.77 kB / 470.4 MB, free: 22.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002783/0.2467, allocations: 3.255 MB / 473.7 MB, free: 19.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.2467, allocations: 3.938 kB / 473.7 MB, free: 19.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003486/0.2502, allocations: 1.789 MB / 475.5 MB, free: 19.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.242e-05/0.2503, allocations: 144.7 kB / 475.6 MB, free: 19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.356e-05/0.2504, allocations: 20.28 kB / 475.6 MB, free: 18.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004746/0.2509, allocations: 35.52 kB / 475.7 MB, free: 18.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.251, allocations: 64.27 kB / 475.7 MB, free: 18.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.179e-05/0.2511, allocations: 23.36 kB / 475.7 MB, free: 18.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003033/0.2514, allocations: 351.8 kB / 476.1 MB, free: 18.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2514, allocations: 1.344 kB / 476.1 MB, free: 18.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006148/0.252, allocations: 238.2 kB / 476.3 MB, free: 18.76 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 (67): * Single equations (assignments): 64 * 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 {(2,6), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003376/0.2554, allocations: 2.306 MB / 478.6 MB, free: 17.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002077/0.2575, allocations: 1.177 MB / 479.8 MB, free: 16.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2575, allocations: 0.8125 kB / 479.8 MB, free: 16.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.2587, allocations: 0.6889 MB / 480.5 MB, free: 16.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005823/0.2593, allocations: 132.6 kB / 480.6 MB, free: 16.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0151/0.2744, allocations: 8.937 MB / 489.6 MB, free: 9.137 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002367/0.2746, allocations: 0.9356 MB / 490.5 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004199/0.2751, allocations: 145.2 kB / 490.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003163/0.2754, allocations: 271.3 kB / 490.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2754, allocations: 4 kB / 490.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02609/0.3015, allocations: 18.02 MB / 0.497 GB, free: 6.125 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002289/0.3017, allocations: 277.1 kB / 0.4973 GB, free: 5.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.981/2.283, allocations: 2.531 kB / 0.4973 GB, free: 5.75 MB / 366.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)