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.00147/0.00147, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.301/1.301, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.193/0.193, allocations: 22.36 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 64.14 kB / 381 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2134, allocations: 54.94 MB / 435.9 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.003478/0.2169, allocations: 3.558 MB / 439.4 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.2186, allocations: 1.079 MB / 440.5 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002691/0.2189, allocations: 13.41 kB / 440.5 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002099/0.2191, allocations: 82.98 kB / 440.6 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004656/0.2196, allocations: 217.2 kB / 440.8 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000527/0.2201, allocations: 239.1 kB / 441.1 MB, free: 36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006283/0.2207, allocations: 0.9072 MB / 442 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005662/0.2213, allocations: 0.6087 MB / 442.6 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004022/0.2217, allocations: 433.9 kB / 443 MB, free: 35.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005777/0.2223, allocations: 0.5934 MB / 443.6 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001244/0.2225, allocations: 99.94 kB / 443.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002003/0.2227, allocations: 135.9 kB / 443.8 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001738/0.2228, allocations: 283.1 kB / 444.1 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003075/0.2232, allocations: 453 kB / 444.5 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005908/0.2237, allocations: 1.082 MB / 445.6 MB, free: 34.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.2238, allocations: 0 / 445.6 MB, free: 34.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2238, allocations: 0 / 445.6 MB, free: 34.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.2238, allocations: 0 / 445.6 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.002212/0.226, allocations: 1.169 MB / 446.8 MB, free: 33.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.226, allocations: 12.19 kB / 446.8 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001081/0.2262, allocations: 95.3 kB / 446.9 MB, free: 33.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.2263, allocations: 81.75 kB / 447 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004978/0.2268, allocations: 485.1 kB / 447.5 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.2268, allocations: 45.53 kB / 447.5 MB, free: 32.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.227, allocations: 51.75 kB / 447.6 MB, free: 32.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.228, allocations: 0.7674 MB / 448.3 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.228, allocations: 0 / 448.3 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.296e-05/0.2281, allocations: 21.41 kB / 448.3 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.2281, allocations: 11.81 kB / 448.4 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.2293, allocations: 0.8324 MB / 449.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003393/0.2327, allocations: 2.086 MB / 451.3 MB, free: 31.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008899/0.2337, allocations: 0.6712 MB / 451.9 MB, free: 30.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005628/0.2342, allocations: 411.9 kB / 452.3 MB, free: 30.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.612e-05/0.2343, allocations: 14.23 kB / 452.4 MB, free: 30.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.562e-05/0.2343, allocations: 46.06 kB / 452.4 MB, free: 30.69 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005588/0.2349, allocations: 158.3 kB / 452.6 MB, free: 30.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.004e-06/0.2349, allocations: 3.062 kB / 452.6 MB, free: 30.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.009538/0.2444, allocations: 2.552 MB / 455.1 MB, free: 29.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.244e-05/0.2445, allocations: 58.47 kB / 455.2 MB, free: 29.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004604/0.2449, allocations: 0.4887 MB / 455.7 MB, free: 29.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.543e-05/0.245, allocations: 36.92 kB / 455.7 MB, free: 29.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.2451, allocations: 294.5 kB / 456 MB, free: 29.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.2453, allocations: 251.7 kB / 456.2 MB, free: 28.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002536/0.2455, allocations: 169.2 kB / 456.4 MB, free: 28.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.279e-05/0.2456, allocations: 373.5 kB / 456.8 MB, free: 28.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006193/0.2462, allocations: 363.8 kB / 457.1 MB, free: 28.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006468/0.2469, allocations: 496.5 kB / 457.6 MB, free: 28.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001239/0.2481, allocations: 0.8769 MB / 458.5 MB, free: 27.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.2481, allocations: 1.438 kB / 458.5 MB, free: 27.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005429/0.2536, allocations: 1.66 MB / 460.1 MB, free: 27.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.2536, allocations: 8.875 kB / 460.1 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.2536, allocations: 3.844 kB / 460.1 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004104/0.2577, allocations: 0.7314 MB / 460.9 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/0.259, allocations: 248.6 kB / 461.1 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005014/0.2641, allocations: 4.153 MB / 465.3 MB, free: 23.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006362/0.2647, allocations: 30.59 kB / 465.3 MB, free: 23.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.966e-05/0.2648, allocations: 46.62 kB / 465.4 MB, free: 23.7 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.0002458/0.2651, allocations: 213.8 kB / 465.6 MB, free: 23.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001218/0.2652, allocations: 60.48 kB / 465.6 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003484/0.2687, allocations: 1.417 MB / 467 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.2687, allocations: 9.656 kB / 467 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.2687, allocations: 6 kB / 467.1 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.2687, allocations: 4.5 kB / 467.1 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008547/0.2696, allocations: 0.8034 MB / 467.9 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2696, allocations: 0 / 467.9 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/0.2707, allocations: 210.6 kB / 468.1 MB, free: 22.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002002/0.2727, allocations: 480.5 kB / 468.5 MB, free: 22.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.413e-05/0.2728, allocations: 28.61 kB / 468.6 MB, free: 22.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003041/0.2759, allocations: 3.472 MB / 472 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.2759, allocations: 1.438 kB / 472 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003682/0.2796, allocations: 1.799 MB / 473.8 MB, free: 18.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.242e-05/0.2797, allocations: 147.4 kB / 474 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.2798, allocations: 19.97 kB / 474 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004981/0.2803, allocations: 36.31 kB / 474 MB, free: 18.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.2805, allocations: 61.38 kB / 474.1 MB, free: 18.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.606e-05/0.2805, allocations: 29.41 kB / 474.1 MB, free: 18.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003305/0.2809, allocations: 342.9 kB / 474.5 MB, free: 18.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2809, allocations: 1.25 kB / 474.5 MB, free: 18.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006773/0.2815, allocations: 242.5 kB / 474.7 MB, free: 18.21 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.003607/0.2852, allocations: 2.329 MB / 477 MB, free: 16.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00264/0.2878, allocations: 1.288 MB / 478.3 MB, free: 16.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2878, allocations: 0.8125 kB / 478.3 MB, free: 16.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001258/0.2891, allocations: 0.6954 MB / 479 MB, free: 16.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005996/0.2897, allocations: 142.5 kB / 479.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.016/0.3057, allocations: 8.567 MB / 487.7 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.306, allocations: 0.9356 MB / 488.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005073/0.3065, allocations: 149.3 kB / 488.8 MB, free: 7.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003358/0.3068, allocations: 263.3 kB / 489.1 MB, free: 7.543 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3068, allocations: 0 / 489.1 MB, free: 7.543 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.852/2.159, allocations: 19.2 MB / 0.4963 GB, free: 4.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.19/17.35, allocations: 16 kB / 0.4964 GB, free: 4.66 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)