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.001432/0.001432, 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.001711/0.001711, allocations: 192.1 kB / 16.25 MB, free: 6.633 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.446/1.446, allocations: 222.9 MB / 239.9 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2398/0.2398, allocations: 22.35 MB / 312.4 MB, free: 12.63 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 63.89 kB / 380.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.3051, allocations: 54.94 MB / 435.2 MB, free: 39.7 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.001883/0.307, allocations: 1.045 MB / 436.3 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.3081, allocations: 1.203 MB / 437.5 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.054e-05/0.3082, allocations: 4 kB / 437.5 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002527/0.3084, allocations: 32.86 kB / 437.5 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001425/0.3086, allocations: 46.25 kB / 437.6 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00013/0.3087, allocations: 61.48 kB / 437.6 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001861/0.3089, allocations: 205.5 kB / 437.8 MB, free: 38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.264e-05/0.309, allocations: 27.58 kB / 437.9 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.975e-05/0.3091, allocations: 86.88 kB / 437.9 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001274/0.3092, allocations: 90.64 kB / 438 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.842e-05/0.3093, allocations: 8.312 kB / 438 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.884e-05/0.3093, allocations: 11.09 kB / 438 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.613e-05/0.3094, allocations: 38.86 kB / 438.1 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.642e-05/0.3094, allocations: 50.17 kB / 438.1 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001059/0.3095, allocations: 115.7 kB / 438.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3095, allocations: 4 kB / 438.3 MB, free: 37.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3095, allocations: 0 / 438.3 MB, free: 37.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.3096, allocations: 0 / 438.3 MB, free: 37.81 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.0009402/0.3105, allocations: 0.4901 MB / 438.7 MB, free: 37.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.3105, allocations: 11.12 kB / 438.8 MB, free: 37.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.952e-05/0.3106, allocations: 17 kB / 438.8 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000431/0.311, allocations: 265.5 kB / 439 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.311, allocations: 10.84 kB / 439 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.625e-05/0.3111, allocations: 5.625 kB / 439 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001532/0.3112, allocations: 106.5 kB / 439.2 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.3113, allocations: 0 / 439.2 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.3113, allocations: 4 kB / 439.2 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3113, allocations: 0 / 439.2 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.3114, allocations: 77.14 kB / 439.2 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005646/0.312, allocations: 429 kB / 439.6 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003314/0.3123, allocations: 147.1 kB / 439.8 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.803e-05/0.3124, allocations: 53.47 kB / 439.8 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.3124, allocations: 11.88 kB / 439.9 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.205e-05/0.3125, allocations: 37.5 kB / 439.9 MB, free: 36.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.3125, allocations: 0 / 439.9 MB, free: 36.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.002417/0.3149, allocations: 479.7 kB / 440.4 MB, free: 36.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.992e-05/0.3149, allocations: 51.41 kB / 440.4 MB, free: 36.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003817/0.3153, allocations: 241.5 kB / 440.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/0.3153, allocations: 29.7 kB / 440.7 MB, free: 36.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.856e-05/0.3154, allocations: 108.2 kB / 440.8 MB, free: 36.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.3154, allocations: 38 kB / 440.8 MB, free: 36.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.133e-05/0.3155, allocations: 25.53 kB / 440.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.359e-05/0.3155, allocations: 328.1 kB / 441.2 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.898e-05/0.3156, allocations: 39.08 kB / 441.2 MB, free: 35.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.143e-05/0.3156, allocations: 38.44 kB / 441.2 MB, free: 35.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001331/0.317, allocations: 285.9 kB / 441.5 MB, free: 35.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.317, allocations: 0 / 441.5 MB, free: 35.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008854/0.3179, allocations: 249.8 kB / 441.8 MB, free: 35.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.3179, allocations: 5.594 kB / 441.8 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3179, allocations: 0 / 441.8 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008649/0.3188, allocations: 118.2 kB / 441.9 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.397e-05/0.3189, allocations: 11.88 kB / 441.9 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003208/0.3221, allocations: 1.882 MB / 443.8 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.3223, allocations: 29.38 kB / 443.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.3223, allocations: 3.016 kB / 443.8 MB, free: 33.91 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 9.788e-05/0.3224, allocations: 138.2 kB / 443.9 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.706e-05/0.3224, allocations: 17.59 kB / 444 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007702/0.3232, allocations: 264.7 kB / 444.2 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3232, allocations: 4 kB / 444.2 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.574e-06/0.3232, allocations: 14.25 kB / 444.2 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3233, allocations: 0 / 444.2 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002068/0.3235, allocations: 237.8 kB / 444.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3235, allocations: 0 / 444.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.174e-05/0.3236, allocations: 11.58 kB / 444.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005819/0.3242, allocations: 107.7 kB / 444.6 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.3242, allocations: 5.797 kB / 444.6 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002227/0.3264, allocations: 1.814 MB / 446.4 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3264, allocations: 0 / 446.4 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007885/0.3272, allocations: 399 kB / 446.8 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.928e-05/0.3273, allocations: 92.2 kB / 446.9 MB, free: 31.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.3273, allocations: 14.09 kB / 446.9 MB, free: 31.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002387/0.3276, allocations: 22.77 kB / 446.9 MB, free: 31.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.77e-05/0.3276, allocations: 12.7 kB / 446.9 MB, free: 31.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/0.3276, allocations: 2.219 kB / 446.9 MB, free: 31.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003238/0.3279, allocations: 195.5 kB / 447.1 MB, free: 31.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.328, allocations: 0 / 447.1 MB, free: 31.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003678/0.3283, allocations: 32 kB / 447.2 MB, free: 31.42 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.95e-05/0.3284, allocations: 110 kB / 447.3 MB, free: 31.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003764/0.3288, allocations: 236.2 kB / 447.5 MB, free: 31.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3288, allocations: 0 / 447.5 MB, free: 31.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.329, allocations: 205.9 kB / 447.7 MB, free: 31.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003736/0.3294, allocations: 20.55 kB / 447.7 MB, free: 31.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004603/0.3299, allocations: 347.6 kB / 448.1 MB, free: 30.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000143/0.33, allocations: 0.7291 MB / 448.8 MB, free: 30.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.891e-05/0.3301, allocations: 26.16 kB / 448.8 MB, free: 30.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.584e-05/0.3302, allocations: 11.22 kB / 448.8 MB, free: 30.07 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3302, allocations: 0 / 448.8 MB, free: 30.07 MB / 350.1 MB Notification: Performance of Templates: time 0.004859/0.335, allocations: 2.505 MB / 451.3 MB, free: 29.92 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)