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.005396/0.005396, allocations: 101.7 kB / 15.88 MB, free: 5.867 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.001358/0.001358, allocations: 192.6 kB / 16.79 MB, free: 5.809 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.305/1.305, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2009/0.2009, allocations: 22.35 MB / 313 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 75.86 kB / 380.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.252, allocations: 54.93 MB / 435.7 MB, free: 39.6 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.001914/0.254, allocations: 1.035 MB / 436.7 MB, free: 38.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.2551, allocations: 1.211 MB / 438 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.013e-05/0.2552, allocations: 2.906 kB / 438 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002515/0.2555, allocations: 26.66 kB / 438 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001331/0.2556, allocations: 45.42 kB / 438 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001437/0.2558, allocations: 66.34 kB / 438.1 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000165/0.2559, allocations: 197.2 kB / 438.3 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.423e-05/0.256, allocations: 26.11 kB / 438.3 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.865e-05/0.2561, allocations: 73.61 kB / 438.4 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001295/0.2563, allocations: 89.84 kB / 438.5 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.574e-05/0.2563, allocations: 5.656 kB / 438.5 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.121e-05/0.2563, allocations: 5.406 kB / 438.5 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.976e-05/0.2564, allocations: 46.59 kB / 438.5 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.898e-05/0.2564, allocations: 46.02 kB / 438.6 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.723e-05/0.2565, allocations: 80.22 kB / 438.6 MB, free: 37.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.2565, allocations: 0 / 438.6 MB, free: 37.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2565, allocations: 0 / 438.6 MB, free: 37.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.616e-06/0.2566, allocations: 3.938 kB / 438.7 MB, free: 37.77 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.0009049/0.2575, allocations: 0.4899 MB / 439.1 MB, free: 37.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.15e-05/0.2575, allocations: 7.75 kB / 439.1 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.902e-05/0.2575, allocations: 20.31 kB / 439.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.258, allocations: 279.7 kB / 439.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-06/0.258, allocations: 5.625 kB / 439.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.532e-05/0.258, allocations: 7.281 kB / 439.5 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001615/0.2582, allocations: 105 kB / 439.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.2582, allocations: 0 / 439.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.2582, allocations: 0 / 439.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.2582, allocations: 2.531 kB / 439.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001381/0.2584, allocations: 84.95 kB / 439.6 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005652/0.2589, allocations: 416.2 kB / 440 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003376/0.2593, allocations: 153.3 kB / 440.2 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.041e-05/0.2594, allocations: 50.19 kB / 440.2 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.2594, allocations: 2.594 kB / 440.3 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.383e-05/0.2594, allocations: 34.5 kB / 440.3 MB, free: 36.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.2594, allocations: 0 / 440.3 MB, free: 36.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.002379/0.2618, allocations: 484.4 kB / 440.8 MB, free: 36.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.538e-05/0.2619, allocations: 55.28 kB / 440.8 MB, free: 36.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003765/0.2622, allocations: 233 kB / 441 MB, free: 36.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.118e-05/0.2623, allocations: 32.14 kB / 441.1 MB, free: 36.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.377e-05/0.2623, allocations: 111.4 kB / 441.2 MB, free: 36.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.249e-05/0.2624, allocations: 39.97 kB / 441.2 MB, free: 36.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.063e-05/0.2624, allocations: 21.34 kB / 441.2 MB, free: 35.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.303e-05/0.2624, allocations: 328.2 kB / 441.6 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.758e-05/0.2625, allocations: 37.78 kB / 441.6 MB, free: 35.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.156e-05/0.2626, allocations: 44.05 kB / 441.6 MB, free: 35.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/0.2639, allocations: 297.5 kB / 441.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2639, allocations: 0 / 441.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008613/0.2648, allocations: 245.1 kB / 442.2 MB, free: 35.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.2648, allocations: 6.844 kB / 442.2 MB, free: 35.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.2648, allocations: 0 / 442.2 MB, free: 35.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008365/0.2657, allocations: 118.2 kB / 442.3 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.545e-05/0.2657, allocations: 16.44 kB / 442.3 MB, free: 35.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002956/0.2687, allocations: 1.746 MB / 444.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.2689, allocations: 32.02 kB / 444.1 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.2689, allocations: 2.688 kB / 444.1 MB, free: 33.97 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.0001166/0.2691, allocations: 133.5 kB / 444.2 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.876e-05/0.2691, allocations: 13.47 kB / 444.2 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007726/0.2699, allocations: 275.1 kB / 444.5 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.2699, allocations: 3.125 kB / 444.5 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.2699, allocations: 4 kB / 444.5 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2699, allocations: 3.328 kB / 444.5 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.2701, allocations: 243.5 kB / 444.7 MB, free: 33.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2701, allocations: 0 / 444.7 MB, free: 33.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.96e-05/0.2702, allocations: 12.69 kB / 444.8 MB, free: 33.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005931/0.2708, allocations: 110 kB / 444.9 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.2708, allocations: 6.5 kB / 444.9 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002004/0.2728, allocations: 1.674 MB / 446.5 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2729, allocations: 3.938 kB / 446.6 MB, free: 32.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007739/0.2736, allocations: 391.9 kB / 446.9 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.489e-05/0.2737, allocations: 106.6 kB / 447 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.2737, allocations: 3.844 kB / 447 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.2739, allocations: 25.16 kB / 447.1 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.143e-05/0.274, allocations: 16.2 kB / 447.1 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.787e-06/0.274, allocations: 2.531 kB / 447.1 MB, free: 31.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003198/0.2743, allocations: 193.9 kB / 447.3 MB, free: 31.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2743, allocations: 0 / 447.3 MB, free: 31.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002863/0.2746, allocations: 29.06 kB / 447.3 MB, free: 31.59 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 8.497e-05/0.2747, allocations: 101.4 kB / 447.4 MB, free: 31.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003654/0.2751, allocations: 247.2 kB / 447.6 MB, free: 31.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2751, allocations: 0 / 447.6 MB, free: 31.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001977/0.2753, allocations: 197.5 kB / 447.8 MB, free: 31.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003305/0.2756, allocations: 19.7 kB / 447.9 MB, free: 31.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005106/0.2762, allocations: 376.4 kB / 448.2 MB, free: 30.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000147/0.2763, allocations: 0.7278 MB / 449 MB, free: 30.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.836e-05/0.2764, allocations: 17.19 kB / 449 MB, free: 30.21 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2764, allocations: 0 / 449 MB, free: 30.21 MB / 350.1 MB Notification: Performance of Templates: time 0.003617/0.28, allocations: 2.396 MB / 451.4 MB, free: 30.07 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)