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.001149/0.001149, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001153/0.001153, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.198/1.198, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1688/0.1688, allocations: 22.36 MB / 312.4 MB, free: 12.63 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 63.89 kB / 380.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2094, allocations: 54.94 MB / 435.4 MB, free: 39.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.002806/0.2122, allocations: 3.311 MB / 438.7 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001046/0.2132, allocations: 0.9786 MB / 439.6 MB, free: 36.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.2134, allocations: 3 kB / 439.7 MB, free: 36.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.2135, allocations: 46.38 kB / 439.7 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002839/0.2138, allocations: 148.1 kB / 439.8 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003456/0.2142, allocations: 170.7 kB / 440 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003992/0.2146, allocations: 0.7053 MB / 440.7 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003241/0.2149, allocations: 390.5 kB / 441.1 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000203/0.2151, allocations: 304 kB / 441.4 MB, free: 35.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003142/0.2154, allocations: 420.6 kB / 441.8 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.261e-05/0.2155, allocations: 73.41 kB / 441.9 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000135/0.2157, allocations: 104.7 kB / 442 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.2158, allocations: 207.3 kB / 442.2 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001879/0.216, allocations: 328.8 kB / 442.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004022/0.2164, allocations: 0.7656 MB / 443.3 MB, free: 35.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.2164, allocations: 0 / 443.3 MB, free: 35.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.2164, allocations: 0 / 443.3 MB, free: 35.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.2164, allocations: 0 / 443.3 MB, free: 35.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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001534/0.218, allocations: 0.9155 MB / 444.2 MB, free: 34.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.218, allocations: 8.906 kB / 444.2 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.773e-05/0.2181, allocations: 83.69 kB / 444.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.317e-05/0.2182, allocations: 56.12 kB / 444.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003268/0.2185, allocations: 395.3 kB / 444.7 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.2185, allocations: 30.94 kB / 444.7 MB, free: 33.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.896e-05/0.2186, allocations: 46.78 kB / 444.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007536/0.2194, allocations: 0.5451 MB / 445.3 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2194, allocations: 0 / 445.3 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.731e-05/0.2194, allocations: 15.84 kB / 445.3 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.2195, allocations: 17.28 kB / 445.4 MB, free: 33.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007526/0.2202, allocations: 0.54 MB / 445.9 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002319/0.2225, allocations: 1.532 MB / 447.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006618/0.2232, allocations: 494.4 kB / 447.9 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003758/0.2236, allocations: 264.8 kB / 448.2 MB, free: 32.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.038e-05/0.2236, allocations: 11.2 kB / 448.2 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.233e-05/0.2237, allocations: 41.62 kB / 448.2 MB, free: 32.43 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002209/0.2239, allocations: 67.86 kB / 448.3 MB, free: 32.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.543e-06/0.2239, allocations: 0 / 448.3 MB, free: 32.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002498/0.2264, allocations: 1.09 MB / 449.4 MB, free: 31.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.873e-05/0.2264, allocations: 65.03 kB / 449.5 MB, free: 31.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002688/0.2267, allocations: 389.7 kB / 449.8 MB, free: 31.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.889e-05/0.2268, allocations: 33.7 kB / 449.9 MB, free: 31.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.083e-05/0.2268, allocations: 238.7 kB / 450.1 MB, free: 31.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.759e-05/0.2269, allocations: 180.2 kB / 450.3 MB, free: 31.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.2271, allocations: 119.5 kB / 450.4 MB, free: 31.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.175e-05/0.2272, allocations: 358.5 kB / 450.7 MB, free: 30.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000374/0.2275, allocations: 256.7 kB / 451 MB, free: 30.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003988/0.2279, allocations: 369.1 kB / 451.4 MB, free: 30.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007609/0.2287, allocations: 0.6283 MB / 452 MB, free: 30.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2287, allocations: 0 / 452 MB, free: 30.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001603/0.2303, allocations: 0.8618 MB / 452.8 MB, free: 29.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.2303, allocations: 6.406 kB / 452.8 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.2304, allocations: 4.562 kB / 452.9 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.2314, allocations: 174.8 kB / 453 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/0.2326, allocations: 243.9 kB / 453.3 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004929/0.2331, allocations: 1.153 MB / 454.4 MB, free: 28.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004251/0.2335, allocations: 26.86 kB / 454.4 MB, free: 28.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.458e-05/0.2336, allocations: 34.19 kB / 454.5 MB, free: 28.66 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001668/0.2338, allocations: 179.5 kB / 454.6 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.098e-05/0.2338, allocations: 48.36 kB / 454.7 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00165/0.2355, allocations: 0.8314 MB / 455.5 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.2355, allocations: 7.062 kB / 455.5 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2355, allocations: 0 / 455.5 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.2355, allocations: 3.328 kB / 455.5 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002074/0.2376, allocations: 1.46 MB / 457 MB, free: 27.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2376, allocations: 0 / 457 MB, free: 27.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009879/0.2386, allocations: 205.9 kB / 457.2 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007453/0.2394, allocations: 164.7 kB / 457.4 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.875e-05/0.2394, allocations: 17.34 kB / 457.4 MB, free: 27.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004598/0.2399, allocations: 1.171 MB / 458.5 MB, free: 26.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.2399, allocations: 0 / 458.5 MB, free: 26.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.2418, allocations: 1.139 MB / 459.7 MB, free: 25.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.418e-05/0.2418, allocations: 121.4 kB / 459.8 MB, free: 25.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.326e-05/0.2419, allocations: 21.34 kB / 459.8 MB, free: 25.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003881/0.2423, allocations: 26.03 kB / 459.9 MB, free: 25.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.2424, allocations: 46.78 kB / 459.9 MB, free: 25.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-05/0.2425, allocations: 19.31 kB / 459.9 MB, free: 25.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002272/0.2427, allocations: 270.2 kB / 460.2 MB, free: 25.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2427, allocations: 0 / 460.2 MB, free: 25.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004583/0.2432, allocations: 165.7 kB / 460.3 MB, free: 25.32 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001713/0.2449, allocations: 1.632 MB / 462 MB, free: 24.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.2464, allocations: 0.7734 MB / 462.7 MB, free: 24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2464, allocations: 0 / 462.7 MB, free: 24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00069/0.2471, allocations: 366.7 kB / 463.1 MB, free: 23.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004954/0.2476, allocations: 113.7 kB / 463.2 MB, free: 23.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008243/0.2559, allocations: 6.263 MB / 469.5 MB, free: 20.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.2561, allocations: 0.8638 MB / 470.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004178/0.2566, allocations: 131.7 kB / 470.5 MB, free: 19.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002861/0.2569, allocations: 193.9 kB / 470.7 MB, free: 19.35 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2569, allocations: 5.25 kB / 470.7 MB, free: 19.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02441/0.2813, allocations: 13.66 MB / 484.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001549/0.2815, allocations: 281.1 kB / 484.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.034/2.315, allocations: 0 / 484.6 MB, free: 12.27 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/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)