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_004_LTI.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: translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009247/0.0009248, allocations: 91.92 kB / 16.02 MB, free: 80 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.001087/0.001087, allocations: 177.5 kB / 16.92 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.31/1.31, allocations: 223.3 MB / 241 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2107/0.2107, allocations: 22.34 MB / 314.4 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003061/0.0003061, allocations: 12 kB / 383.3 MB, free: 10.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2595, allocations: 55.97 MB / 439.2 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.0009647/0.2605, allocations: 0.6878 MB / 439.9 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.2616, allocations: 1.199 MB / 441.1 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.494e-05/0.2617, allocations: 2.594 kB / 441.1 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002433/0.2619, allocations: 29.52 kB / 441.2 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.2621, allocations: 49.05 kB / 441.2 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001343/0.2622, allocations: 60.33 kB / 441.3 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001729/0.2624, allocations: 194.2 kB / 441.5 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.458e-05/0.2625, allocations: 23.62 kB / 441.5 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.775e-05/0.2626, allocations: 75.34 kB / 441.6 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.2627, allocations: 81.08 kB / 441.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.081e-05/0.2627, allocations: 7.844 kB / 441.6 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.601e-05/0.2628, allocations: 5.594 kB / 441.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.519e-05/0.2628, allocations: 35.22 kB / 441.7 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.129e-05/0.2629, allocations: 69.39 kB / 441.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.342e-05/0.263, allocations: 83.66 kB / 441.8 MB, free: 37.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.263, allocations: 0 / 441.8 MB, free: 37.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.263, allocations: 0 / 441.8 MB, free: 37.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.696e-06/0.263, allocations: 0 / 441.8 MB, free: 37.68 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008639/0.2639, allocations: 485.5 kB / 442.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.2639, allocations: 14.16 kB / 442.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.953e-05/0.264, allocations: 19.98 kB / 442.3 MB, free: 37.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004198/0.2644, allocations: 283.5 kB / 442.6 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.2644, allocations: 7.469 kB / 442.6 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.2644, allocations: 3.469 kB / 442.6 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001468/0.2646, allocations: 105.2 kB / 442.7 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.2646, allocations: 0 / 442.7 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.2646, allocations: 6.844 kB / 442.7 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.2646, allocations: 4 kB / 442.7 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000137/0.2648, allocations: 85.61 kB / 442.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000545/0.2653, allocations: 417.7 kB / 443.2 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003236/0.2657, allocations: 147 kB / 443.4 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.676e-05/0.2658, allocations: 54.05 kB / 443.4 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.2658, allocations: 0 / 443.4 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.308e-05/0.2658, allocations: 37.47 kB / 443.5 MB, free: 36.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 9.02e-07/0.2658, allocations: 0 / 443.5 MB, free: 36.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.00242/0.2682, allocations: 496.2 kB / 444 MB, free: 36.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.373e-05/0.2683, allocations: 54.03 kB / 444 MB, free: 36.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003967/0.2687, allocations: 235.4 kB / 444.2 MB, free: 36.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.192e-05/0.2687, allocations: 28.45 kB / 444.3 MB, free: 36.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.168e-05/0.2688, allocations: 111.9 kB / 444.4 MB, free: 35.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.318e-05/0.2688, allocations: 33.69 kB / 444.4 MB, free: 35.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.692e-05/0.2688, allocations: 20.62 kB / 444.4 MB, free: 35.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.286e-05/0.2689, allocations: 318.3 kB / 444.7 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.414e-05/0.2689, allocations: 38.56 kB / 444.8 MB, free: 35.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.093e-05/0.269, allocations: 42.48 kB / 444.8 MB, free: 35.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.2703, allocations: 286.8 kB / 445.1 MB, free: 35.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2703, allocations: 4 kB / 445.1 MB, free: 35.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008694/0.2712, allocations: 253.4 kB / 445.3 MB, free: 35.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.2712, allocations: 5.625 kB / 445.4 MB, free: 35.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2712, allocations: 2.875 kB / 445.4 MB, free: 35.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008466/0.2721, allocations: 111.8 kB / 445.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.385e-05/0.2721, allocations: 12.86 kB / 445.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002924/0.2751, allocations: 1.769 MB / 447.2 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.2753, allocations: 28.41 kB / 447.3 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.2753, allocations: 6.938 kB / 447.3 MB, free: 33.88 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] A.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.2754, allocations: 132.9 kB / 447.4 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.507e-05/0.2754, allocations: 14.88 kB / 447.4 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007246/0.2762, allocations: 272.3 kB / 447.7 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.2762, allocations: 3 kB / 447.7 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-06/0.2762, allocations: 0 / 447.7 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.2762, allocations: 0 / 447.7 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001889/0.2764, allocations: 237.3 kB / 447.9 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2764, allocations: 2.812 kB / 447.9 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.535e-05/0.2765, allocations: 15.31 kB / 447.9 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005743/0.2771, allocations: 109.7 kB / 448.1 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.2771, allocations: 7.938 kB / 448.1 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001904/0.279, allocations: 1.685 MB / 449.7 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.279, allocations: 8 kB / 449.8 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007393/0.2798, allocations: 391.9 kB / 450.1 MB, free: 31.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.431e-05/0.2798, allocations: 94.45 kB / 450.2 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.2798, allocations: 6.656 kB / 450.2 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.2801, allocations: 24.33 kB / 450.3 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.097e-05/0.2801, allocations: 21.33 kB / 450.3 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.2801, allocations: 7.844 kB / 450.3 MB, free: 31.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003236/0.2804, allocations: 185.1 kB / 450.5 MB, free: 31.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2804, allocations: 2.906 kB / 450.5 MB, free: 31.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002848/0.2807, allocations: 27.69 kB / 450.5 MB, free: 31.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (A.x_scaled[1],C.x_scaled[1]) * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 9.151e-05/0.2808, allocations: 107.2 kB / 450.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003471/0.2812, allocations: 245.5 kB / 450.8 MB, free: 31.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2812, allocations: 0 / 450.8 MB, free: 31.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.2814, allocations: 189.4 kB / 451 MB, free: 31.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.2817, allocations: 22.42 kB / 451 MB, free: 31.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004658/0.2822, allocations: 387.5 kB / 451.4 MB, free: 30.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001479/0.2824, allocations: 0.734 MB / 452.2 MB, free: 30.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.82e-05/0.2824, allocations: 11.91 kB / 452.2 MB, free: 30.12 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2824, allocations: 0 / 452.2 MB, free: 30.12 MB / 350.1 MB Notification: Performance of Templates: time 0.003644/0.2861, allocations: 2.373 MB / 454.5 MB, free: 30 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe 2>&1)