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.001154/0.001154, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001119/0.001119, allocations: 193.9 kB / 16.14 MB, free: 6.691 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.178/1.178, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1687/0.1687, allocations: 22.35 MB / 312.3 MB, free: 12.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 63.91 kB / 380.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2043/0.2055, allocations: 54.94 MB / 435.2 MB, free: 39.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.002848/0.2084, allocations: 3.292 MB / 438.5 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.2095, allocations: 0.9883 MB / 439.4 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.2096, allocations: 5.625 kB / 439.5 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.2097, allocations: 46.41 kB / 439.5 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002656/0.21, allocations: 158.6 kB / 439.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002988/0.2103, allocations: 159.5 kB / 439.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000419/0.2107, allocations: 0.794 MB / 440.6 MB, free: 36.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002959/0.211, allocations: 349.8 kB / 440.9 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.2112, allocations: 270.4 kB / 441.2 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003113/0.2116, allocations: 411.6 kB / 441.6 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.384e-05/0.2116, allocations: 51.09 kB / 441.7 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.2118, allocations: 81.48 kB / 441.7 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.2119, allocations: 188.6 kB / 441.9 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001968/0.2121, allocations: 299.3 kB / 442.2 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003952/0.2125, allocations: 0.7436 MB / 443 MB, free: 35.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2125, allocations: 0 / 443 MB, free: 35.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.2125, allocations: 6.781 kB / 443 MB, free: 35.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.2125, allocations: 0 / 443 MB, free: 35.09 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.001519/0.2141, allocations: 0.9104 MB / 443.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.2141, allocations: 14.03 kB / 443.9 MB, free: 34.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.436e-05/0.2142, allocations: 87.27 kB / 444 MB, free: 34.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.401e-05/0.2143, allocations: 56.97 kB / 444 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.2146, allocations: 379.2 kB / 444.4 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.197e-05/0.2146, allocations: 35.44 kB / 444.4 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.212e-05/0.2147, allocations: 45.16 kB / 444.5 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007666/0.2155, allocations: 0.5516 MB / 445 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.2155, allocations: 0 / 445 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.665e-05/0.2156, allocations: 18.16 kB / 445.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.2156, allocations: 8.094 kB / 445.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007808/0.2164, allocations: 0.5367 MB / 445.6 MB, free: 33.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.2187, allocations: 1.533 MB / 447.1 MB, free: 32.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007073/0.2194, allocations: 500 kB / 447.6 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003892/0.2198, allocations: 262.5 kB / 447.9 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.524e-05/0.2199, allocations: 9.828 kB / 447.9 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.504e-05/0.2199, allocations: 37.62 kB / 447.9 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002194/0.2201, allocations: 68.38 kB / 448 MB, free: 32.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.412e-06/0.2201, allocations: 0 / 448 MB, free: 32.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002507/0.2226, allocations: 1.086 MB / 449.1 MB, free: 31.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.774e-05/0.2226, allocations: 65.28 kB / 449.1 MB, free: 31.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002787/0.2229, allocations: 388.7 kB / 449.5 MB, free: 31.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.223, allocations: 36.42 kB / 449.6 MB, free: 31.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.559e-05/0.2231, allocations: 243.1 kB / 449.8 MB, free: 31.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.906e-05/0.2232, allocations: 181.4 kB / 450 MB, free: 31.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/0.2233, allocations: 123.6 kB / 450.1 MB, free: 31.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.253e-05/0.2234, allocations: 359.6 kB / 450.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000389/0.2238, allocations: 252.3 kB / 450.7 MB, free: 30.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004177/0.2242, allocations: 367.5 kB / 451 MB, free: 30.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000788/0.225, allocations: 0.6259 MB / 451.7 MB, free: 30.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.225, allocations: 3.656 kB / 451.7 MB, free: 30.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001611/0.2266, allocations: 0.857 MB / 452.5 MB, free: 29.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.2267, allocations: 8.438 kB / 452.5 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.2267, allocations: 7.094 kB / 452.5 MB, free: 29.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/0.2277, allocations: 178.8 kB / 452.7 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.2289, allocations: 244.9 kB / 453 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004812/0.2294, allocations: 1.151 MB / 454.1 MB, free: 28.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004321/0.2298, allocations: 31.75 kB / 454.1 MB, free: 28.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.395e-05/0.2299, allocations: 29.3 kB / 454.2 MB, free: 28.73 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.0001647/0.23, allocations: 186.7 kB / 454.4 MB, free: 28.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.312e-05/0.2301, allocations: 45.16 kB / 454.4 MB, free: 28.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001666/0.2318, allocations: 0.8304 MB / 455.2 MB, free: 28.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.2318, allocations: 6.531 kB / 455.2 MB, free: 28.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2318, allocations: 0 / 455.2 MB, free: 28.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.2318, allocations: 7.219 kB / 455.2 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002118/0.234, allocations: 1.464 MB / 456.7 MB, free: 27.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.234, allocations: 1.094 kB / 456.7 MB, free: 27.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009848/0.235, allocations: 196.6 kB / 456.9 MB, free: 27.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008102/0.2358, allocations: 172.1 kB / 457.1 MB, free: 27.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.805e-05/0.2358, allocations: 25.84 kB / 457.1 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004627/0.2363, allocations: 1.164 MB / 458.3 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.2363, allocations: 1.344 kB / 458.3 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001887/0.2382, allocations: 1.124 MB / 459.4 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.398e-05/0.2383, allocations: 120.9 kB / 459.5 MB, free: 25.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.578e-05/0.2384, allocations: 24.36 kB / 459.5 MB, free: 25.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003762/0.2388, allocations: 25.5 kB / 459.5 MB, free: 25.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.572e-05/0.2389, allocations: 48.11 kB / 459.6 MB, free: 25.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.99e-05/0.2389, allocations: 22.88 kB / 459.6 MB, free: 25.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002175/0.2392, allocations: 269.9 kB / 459.9 MB, free: 25.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2392, allocations: 1.5 kB / 459.9 MB, free: 25.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004644/0.2396, allocations: 163.6 kB / 460 MB, free: 25.39 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.001726/0.2414, allocations: 1.641 MB / 461.7 MB, free: 24.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.2427, allocations: 0.679 MB / 462.4 MB, free: 24.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2427, allocations: 0 / 462.4 MB, free: 24.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007141/0.2434, allocations: 360.5 kB / 462.7 MB, free: 23.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000516/0.2439, allocations: 111.7 kB / 462.8 MB, free: 23.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008395/0.2523, allocations: 6.264 MB / 469.1 MB, free: 20.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.2526, allocations: 0.8626 MB / 469.9 MB, free: 19.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004157/0.253, allocations: 128.7 kB / 470.1 MB, free: 19.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002931/0.2533, allocations: 194.2 kB / 470.3 MB, free: 19.44 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2533, allocations: 0 / 470.3 MB, free: 19.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6242/0.8775, allocations: 13.12 MB / 483.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001819/0.8777, allocations: 285.1 kB / 483.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.24/3.117, allocations: 0 / 483.7 MB, free: 13.09 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)