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.001138/0.001138, allocations: 103.5 kB / 16.35 MB, free: 6.285 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.001089/0.001089, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09119/0.09119, allocations: 22.33 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001244, allocations: 63.28 kB / 382.2 MB, free: 41.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08449/0.08575, allocations: 54.97 MB / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.002193/0.08798, allocations: 0.9693 MB / 438.2 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.08933, allocations: 1.209 MB / 439.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.985e-05/0.08941, allocations: 0 / 439.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002645/0.08969, allocations: 35.78 kB / 439.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001585/0.08987, allocations: 47.75 kB / 439.5 MB, free: 9.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001622/0.09004, allocations: 71.91 kB / 439.6 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002286/0.09028, allocations: 203.6 kB / 439.8 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.0904, allocations: 29.38 kB / 439.8 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001104/0.09052, allocations: 83.73 kB / 439.9 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.09068, allocations: 87.7 kB / 439.9 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.75e-05/0.09072, allocations: 15.94 kB / 440 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.865e-05/0.09074, allocations: 8 kB / 440 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.114e-05/0.09082, allocations: 43.83 kB / 440 MB, free: 9.438 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.212e-05/0.09089, allocations: 51.67 kB / 440.1 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001402/0.09104, allocations: 119.5 kB / 440.2 MB, free: 9.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.09105, allocations: 0 / 440.2 MB, free: 9.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.09105, allocations: 0 / 440.2 MB, free: 9.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.097e-06/0.09106, allocations: 0 / 440.2 MB, free: 9.27 MB / 318.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.0009905/0.09206, allocations: 0.4949 MB / 440.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/0.09209, allocations: 8.031 kB / 440.7 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.237e-05/0.09214, allocations: 16.75 kB / 440.7 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005147/0.09266, allocations: 276.6 kB / 441 MB, free: 8.391 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.09269, allocations: 8.375 kB / 441 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.013e-05/0.09272, allocations: 4.375 kB / 441 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001703/0.0929, allocations: 105.9 kB / 441.1 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.09291, allocations: 0 / 441.1 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.09293, allocations: 4 kB / 441.1 MB, free: 8.266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.09294, allocations: 8 kB / 441.1 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001494/0.0931, allocations: 79.94 kB / 441.2 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006432/0.09375, allocations: 416.5 kB / 441.6 MB, free: 7.723 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003572/0.09412, allocations: 158.7 kB / 441.7 MB, free: 7.559 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.839e-05/0.0942, allocations: 48.83 kB / 441.8 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.09423, allocations: 0 / 441.8 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.09426, allocations: 34.56 kB / 441.8 MB, free: 7.465 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.012e-06/0.09427, allocations: 3.938 kB / 441.8 MB, free: 7.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.002451/0.09672, allocations: 487.1 kB / 442.3 MB, free: 6.957 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.198e-05/0.09677, allocations: 55.41 kB / 442.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004236/0.0972, allocations: 229.4 kB / 442.6 MB, free: 6.656 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.09722, allocations: 25.7 kB / 442.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.342e-05/0.09729, allocations: 112.1 kB / 442.7 MB, free: 6.512 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.606e-05/0.09734, allocations: 39.45 kB / 442.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.754e-05/0.09739, allocations: 25.72 kB / 442.8 MB, free: 6.441 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.821e-05/0.09749, allocations: 322.8 kB / 443.1 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.698e-05/0.09757, allocations: 40.34 kB / 443.1 MB, free: 6.078 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.056e-05/0.09763, allocations: 39.92 kB / 443.2 MB, free: 6.039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.09894, allocations: 296.6 kB / 443.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.09896, allocations: 0 / 443.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008857/0.09985, allocations: 238.2 kB / 443.7 MB, free: 5.504 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.09988, allocations: 8 kB / 443.7 MB, free: 5.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.09989, allocations: 0 / 443.7 MB, free: 5.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008138/0.1007, allocations: 112.8 kB / 443.8 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.742e-05/0.1008, allocations: 16 kB / 443.8 MB, free: 5.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003447/0.1042, allocations: 1.876 MB / 445.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/0.1044, allocations: 35.92 kB / 445.7 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.1045, allocations: 0 / 445.7 MB, free: 3.312 MB / 318.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.0001257/0.1046, allocations: 134.5 kB / 445.9 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.915e-05/0.1046, allocations: 11.84 kB / 445.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007866/0.1054, allocations: 263.8 kB / 446.1 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1055, allocations: 3.938 kB / 446.1 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.1055, allocations: 7.938 kB / 446.1 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.1055, allocations: 0 / 446.1 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002455/0.1057, allocations: 245.4 kB / 446.4 MB, free: 2.594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1057, allocations: 0 / 446.4 MB, free: 2.594 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.452e-05/0.1058, allocations: 16.11 kB / 446.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005675/0.1064, allocations: 108.8 kB / 446.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.1064, allocations: 12 kB / 446.5 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002478/0.1089, allocations: 1.805 MB / 448.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1089, allocations: 0 / 448.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008186/0.1097, allocations: 392 kB / 448.7 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-05/0.1098, allocations: 97.2 kB / 448.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.1099, allocations: 3.938 kB / 448.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/0.1101, allocations: 24.03 kB / 448.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.568e-05/0.1101, allocations: 19.98 kB / 448.8 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.1102, allocations: 7.922 kB / 448.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003459/0.1105, allocations: 184.8 kB / 449 MB, free: 15.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1105, allocations: 0 / 449 MB, free: 15.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002858/0.1108, allocations: 31.91 kB / 449.1 MB, free: 15.72 MB / 334.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 0.0001079/0.1109, allocations: 107.2 kB / 449.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004182/0.1113, allocations: 241.9 kB / 449.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1114, allocations: 0 / 449.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002302/0.1116, allocations: 190.6 kB / 449.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003023/0.1119, allocations: 24.14 kB / 449.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005217/0.1124, allocations: 328.7 kB / 449.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.1127, allocations: 0.728 MB / 450.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.852e-05/0.1128, allocations: 20.64 kB / 450.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.396e-05/0.1128, allocations: 11.44 kB / 450.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of SimCode: time 4.5e-07/0.1128, allocations: 0 / 450.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of Templates: time 0.0057/0.1185, allocations: 2.518 MB / 453.2 MB, free: 11.54 MB / 334.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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe 2>&1)