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.001196/0.001196, 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.001123/0.001123, allocations: 188.4 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.196/1.196, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1692/0.1692, allocations: 22.35 MB / 312.4 MB, free: 12.6 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 67.89 kB / 380.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2088, allocations: 54.93 MB / 435.4 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.003117/0.212, allocations: 3.927 MB / 439.3 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.2131, allocations: 1.125 MB / 440.4 MB, free: 35.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.2133, allocations: 4.969 kB / 440.4 MB, free: 35.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.2135, allocations: 57.03 kB / 440.5 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003458/0.2138, allocations: 188.8 kB / 440.6 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003762/0.2142, allocations: 204.2 kB / 440.8 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004901/0.2147, allocations: 0.9139 MB / 441.8 MB, free: 35.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004486/0.2152, allocations: 0.6101 MB / 442.4 MB, free: 35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002581/0.2154, allocations: 436 kB / 442.8 MB, free: 34.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004307/0.2159, allocations: 0.602 MB / 443.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001/0.216, allocations: 101.1 kB / 443.5 MB, free: 34.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001617/0.2161, allocations: 129.4 kB / 443.6 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.2163, allocations: 287.8 kB / 443.9 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002435/0.2165, allocations: 452.6 kB / 444.3 MB, free: 34.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005237/0.2171, allocations: 1.076 MB / 445.4 MB, free: 33.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.2171, allocations: 0 / 445.4 MB, free: 33.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2171, allocations: 4 kB / 445.4 MB, free: 33.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.2171, allocations: 0 / 445.4 MB, free: 33.71 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.002154/0.2192, allocations: 1.174 MB / 446.6 MB, free: 33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.864e-05/0.2193, allocations: 11.56 kB / 446.6 MB, free: 33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.2194, allocations: 93.05 kB / 446.7 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.2195, allocations: 80.86 kB / 446.8 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004427/0.22, allocations: 483.9 kB / 447.3 MB, free: 32.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/0.22, allocations: 44.28 kB / 447.3 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.887e-05/0.2201, allocations: 61.53 kB / 447.4 MB, free: 32.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.2211, allocations: 0.7653 MB / 448.1 MB, free: 32.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.2212, allocations: 0 / 448.1 MB, free: 32.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.926e-05/0.2212, allocations: 25.69 kB / 448.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.2213, allocations: 13.69 kB / 448.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.2224, allocations: 0.8231 MB / 449 MB, free: 31.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003139/0.2256, allocations: 2.078 MB / 451.1 MB, free: 30.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008334/0.2264, allocations: 0.6764 MB / 451.7 MB, free: 30.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005155/0.2269, allocations: 420.8 kB / 452.2 MB, free: 30.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.686e-05/0.227, allocations: 10.77 kB / 452.2 MB, free: 30.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.781e-05/0.227, allocations: 50.84 kB / 452.2 MB, free: 30.37 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00054/0.2276, allocations: 160.6 kB / 452.4 MB, free: 30.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 1.854e-06/0.2276, allocations: 0 / 452.4 MB, free: 30.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.009163/0.2367, allocations: 2.555 MB / 454.9 MB, free: 29.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.216e-05/0.2368, allocations: 58.91 kB / 455 MB, free: 29.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003962/0.2372, allocations: 499.8 kB / 455.5 MB, free: 29.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.623e-05/0.2372, allocations: 40.83 kB / 455.5 MB, free: 29.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.2374, allocations: 292.9 kB / 455.8 MB, free: 28.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.2375, allocations: 251.9 kB / 456 MB, free: 28.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002514/0.2378, allocations: 166.7 kB / 456.2 MB, free: 28.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.497e-05/0.2378, allocations: 371.6 kB / 456.6 MB, free: 28.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005811/0.2384, allocations: 364.9 kB / 456.9 MB, free: 28.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006065/0.239, allocations: 492 kB / 457.4 MB, free: 27.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.2402, allocations: 0.8787 MB / 458.3 MB, free: 27.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.2402, allocations: 1.281 kB / 458.3 MB, free: 27.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005199/0.2454, allocations: 1.651 MB / 459.9 MB, free: 26.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.2454, allocations: 8.531 kB / 459.9 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.2454, allocations: 4.156 kB / 459.9 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003951/0.2494, allocations: 0.7283 MB / 460.7 MB, free: 26.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/0.2507, allocations: 249.4 kB / 460.9 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004816/0.2555, allocations: 4.156 MB / 465.1 MB, free: 23.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006203/0.2561, allocations: 35.52 kB / 465.1 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.817e-05/0.2562, allocations: 46.78 kB / 465.2 MB, free: 23.38 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.0002216/0.2564, allocations: 211.2 kB / 465.4 MB, free: 23.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.2566, allocations: 61.7 kB / 465.4 MB, free: 23.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003334/0.2599, allocations: 1.414 MB / 466.8 MB, free: 22.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.2599, allocations: 13.03 kB / 466.8 MB, free: 22.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.2599, allocations: 1.859 kB / 466.8 MB, free: 22.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.779e-06/0.2599, allocations: 5.172 kB / 466.9 MB, free: 22.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008281/0.2608, allocations: 0.8061 MB / 467.7 MB, free: 22.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.2608, allocations: 5.156 kB / 467.7 MB, free: 22.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.2619, allocations: 210.5 kB / 467.9 MB, free: 22.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001949/0.2638, allocations: 480.1 kB / 468.3 MB, free: 22.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.354e-05/0.2639, allocations: 28.64 kB / 468.4 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002911/0.2668, allocations: 3.46 MB / 471.8 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2669, allocations: 0 / 471.8 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003486/0.2703, allocations: 1.8 MB / 473.6 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.265e-05/0.2704, allocations: 147 kB / 473.8 MB, free: 18.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.2705, allocations: 20.31 kB / 473.8 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005028/0.2711, allocations: 31.28 kB / 473.8 MB, free: 18.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/0.2712, allocations: 66.53 kB / 473.9 MB, free: 18.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.484e-05/0.2713, allocations: 29.02 kB / 473.9 MB, free: 18.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002918/0.2716, allocations: 346.7 kB / 474.3 MB, free: 17.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2716, allocations: 0 / 474.3 MB, free: 17.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006405/0.2722, allocations: 239.7 kB / 474.5 MB, free: 17.91 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.003425/0.2757, allocations: 2.335 MB / 476.8 MB, free: 16.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002514/0.2782, allocations: 1.293 MB / 478.1 MB, free: 16.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2782, allocations: 4.125 kB / 478.1 MB, free: 16.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001199/0.2794, allocations: 0.6914 MB / 478.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005706/0.28, allocations: 137.3 kB / 478.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01558/0.2956, allocations: 8.809 MB / 487.8 MB, free: 8.516 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.2958, allocations: 0.9356 MB / 488.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004525/0.2963, allocations: 149.2 kB / 488.8 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003124/0.2966, allocations: 263.3 kB / 489.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2966, allocations: 0 / 489.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03122/0.3278, allocations: 19.05 MB / 0.4962 GB, free: 4.48 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000251/0.3281, allocations: 289 kB / 0.4965 GB, free: 4.102 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.136/2.464, allocations: 2.953 kB / 0.4965 GB, free: 4.102 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)