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.001057/0.001057, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008394/0.008394, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.35/1.35, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1893/0.1893, allocations: 22.34 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002807/0.0002807, allocations: 8 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2279, allocations: 55.97 MB / 438.7 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.002451/0.2304, allocations: 3.408 MB / 442.1 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.2317, allocations: 1.086 MB / 443.2 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.2318, allocations: 5.344 kB / 443.2 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.232, allocations: 56.81 kB / 443.2 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000343/0.2323, allocations: 184.1 kB / 443.4 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003643/0.2327, allocations: 188.7 kB / 443.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005572/0.2332, allocations: 0.9292 MB / 444.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000481/0.2337, allocations: 0.5273 MB / 445.1 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002658/0.234, allocations: 365.2 kB / 445.4 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004886/0.2345, allocations: 0.5514 MB / 446 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.227e-05/0.2346, allocations: 63.38 kB / 446 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001616/0.2348, allocations: 94.59 kB / 446.1 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.2349, allocations: 237.5 kB / 446.4 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002608/0.2352, allocations: 417.2 kB / 446.8 MB, free: 34.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005495/0.2358, allocations: 0.9795 MB / 447.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2358, allocations: 4 kB / 447.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2358, allocations: 0 / 447.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.2358, allocations: 0 / 447.8 MB, free: 34.18 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.0019/0.2377, allocations: 0.9542 MB / 448.7 MB, free: 33.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.2377, allocations: 13.91 kB / 448.7 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000107/0.2378, allocations: 96.67 kB / 448.8 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.238, allocations: 75.16 kB / 448.9 MB, free: 33.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004643/0.2384, allocations: 462.5 kB / 449.3 MB, free: 33.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.699e-05/0.2385, allocations: 37.72 kB / 449.4 MB, free: 33.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.2386, allocations: 66.86 kB / 449.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.2397, allocations: 0.7391 MB / 450.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.2397, allocations: 0 / 450.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.562e-05/0.2398, allocations: 22.75 kB / 450.2 MB, free: 32.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.2398, allocations: 12.84 kB / 450.2 MB, free: 32.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.241, allocations: 0.8022 MB / 451 MB, free: 32.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004011/0.2451, allocations: 2.382 MB / 453.4 MB, free: 31.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009625/0.246, allocations: 0.6383 MB / 454 MB, free: 31.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006969/0.2467, allocations: 414 kB / 454.4 MB, free: 30.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.172e-05/0.2468, allocations: 15.17 kB / 454.5 MB, free: 30.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.594e-05/0.2468, allocations: 42.91 kB / 454.5 MB, free: 30.85 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005211/0.2473, allocations: 142 kB / 454.6 MB, free: 30.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.074e-06/0.2474, allocations: 2.781 kB / 454.6 MB, free: 30.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.009476/0.2568, allocations: 2.343 MB / 457 MB, free: 29.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.607e-05/0.2569, allocations: 62.5 kB / 457 MB, free: 29.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004087/0.2573, allocations: 456.7 kB / 457.5 MB, free: 29.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.919e-05/0.2574, allocations: 36.48 kB / 457.5 MB, free: 29.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.2575, allocations: 266.4 kB / 457.8 MB, free: 29.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.2576, allocations: 234.2 kB / 458 MB, free: 29.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.2577, allocations: 66.66 kB / 458.1 MB, free: 29.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.486e-05/0.2578, allocations: 368.1 kB / 458.4 MB, free: 28.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006116/0.2584, allocations: 338.7 kB / 458.8 MB, free: 28.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006597/0.2591, allocations: 472.2 kB / 459.2 MB, free: 28.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001256/0.2604, allocations: 0.8293 MB / 460.1 MB, free: 28.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2604, allocations: 1.344 kB / 460.1 MB, free: 28.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005558/0.2659, allocations: 1.55 MB / 461.6 MB, free: 27.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.266, allocations: 6.75 kB / 461.6 MB, free: 27.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.046e-06/0.266, allocations: 4 kB / 461.6 MB, free: 27.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004961/0.271, allocations: 0.7548 MB / 462.4 MB, free: 27.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.2723, allocations: 246.8 kB / 462.6 MB, free: 27.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004896/0.2772, allocations: 3.836 MB / 466.5 MB, free: 24.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006291/0.2779, allocations: 34.38 kB / 466.5 MB, free: 24.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.117e-05/0.278, allocations: 46.59 kB / 466.5 MB, free: 24.34 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.0002544/0.2782, allocations: 202.1 kB / 466.7 MB, free: 24.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.2783, allocations: 58.28 kB / 466.8 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003475/0.2818, allocations: 1.299 MB / 468.1 MB, free: 23.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.2818, allocations: 9 kB / 468.1 MB, free: 23.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2819, allocations: 1.969 kB / 468.1 MB, free: 23.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.2819, allocations: 8.922 kB / 468.1 MB, free: 23.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004064/0.2859, allocations: 1.982 MB / 470.1 MB, free: 22.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.286, allocations: 0 / 470.1 MB, free: 22.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.2872, allocations: 214.2 kB / 470.3 MB, free: 22.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002532/0.2897, allocations: 494.5 kB / 470.8 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.344e-05/0.2898, allocations: 24.56 kB / 470.8 MB, free: 22.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002913/0.2927, allocations: 3.208 MB / 474 MB, free: 19.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.2927, allocations: 0 / 474 MB, free: 19.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003692/0.2964, allocations: 1.642 MB / 475.7 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.01e-05/0.2965, allocations: 143.6 kB / 475.8 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.2966, allocations: 20.11 kB / 475.8 MB, free: 18.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005155/0.2971, allocations: 30 kB / 475.8 MB, free: 18.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.2973, allocations: 64.64 kB / 475.9 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.502e-05/0.2974, allocations: 22.98 kB / 475.9 MB, free: 18.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003195/0.2977, allocations: 322.5 kB / 476.2 MB, free: 18.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2977, allocations: 0 / 476.2 MB, free: 18.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006946/0.2984, allocations: 226.7 kB / 476.5 MB, free: 18.72 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.003583/0.302, allocations: 2.17 MB / 478.6 MB, free: 17.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002259/0.3043, allocations: 1.109 MB / 479.7 MB, free: 16.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3043, allocations: 4 kB / 479.8 MB, free: 16.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001266/0.3056, allocations: 0.6443 MB / 480.4 MB, free: 16.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000666/0.3062, allocations: 123.6 kB / 480.5 MB, free: 16.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01684/0.3231, allocations: 8.593 MB / 489.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.3234, allocations: 0.9118 MB / 490 MB, free: 8.652 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004562/0.3238, allocations: 149.1 kB / 490.2 MB, free: 8.508 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000339/0.3242, allocations: 247.3 kB / 490.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3242, allocations: 0 / 490.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02796/0.3521, allocations: 17.08 MB / 0.4956 GB, free: 7.559 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002017/0.3524, allocations: 287.1 kB / 0.4959 GB, free: 7.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.816/3.169, allocations: 0 / 0.4959 GB, free: 7.18 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)