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.001104/0.001104, allocations: 105.5 kB / 16.41 MB, free: 6.473 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.001153/0.001153, allocations: 187 kB / 17.34 MB, free: 5.754 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.304/1.304, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09446/0.09446, allocations: 22.32 MB / 313.5 MB, free: 8.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 63.89 kB / 437.7 MB, free: 11.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09257/0.09386, allocations: 54.95 MB / 492.7 MB, free: 4.895 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.00226/0.09616, allocations: 0.9738 MB / 493.7 MB, free: 3.922 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.09786, allocations: 1.205 MB / 494.9 MB, free: 2.699 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.09801, allocations: 4 kB / 494.9 MB, free: 2.695 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003317/0.09837, allocations: 31.77 kB / 494.9 MB, free: 2.664 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002049/0.09859, allocations: 59.75 kB / 495 MB, free: 2.605 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002295/0.09884, allocations: 67.91 kB / 495 MB, free: 2.539 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002818/0.09913, allocations: 203.6 kB / 495.2 MB, free: 2.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.09928, allocations: 37.36 kB / 495.3 MB, free: 2.297 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.09945, allocations: 83.73 kB / 495.3 MB, free: 2.215 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001848/0.09964, allocations: 83.66 kB / 495.4 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.315e-05/0.09969, allocations: 12 kB / 495.4 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.297e-05/0.09974, allocations: 8 kB / 495.4 MB, free: 2.113 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.758e-05/0.09983, allocations: 43.88 kB / 495.5 MB, free: 2.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.438e-05/0.0999, allocations: 47.67 kB / 495.5 MB, free: 2.023 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001715/0.1001, allocations: 115.5 kB / 495.6 MB, free: 1.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.1001, allocations: 0 / 495.6 MB, free: 1.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.1001, allocations: 0 / 495.6 MB, free: 1.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.1001, allocations: 4 kB / 495.7 MB, free: 1.906 MB / 366.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.001133/0.1013, allocations: 0.491 MB / 496.1 MB, free: 1.367 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.1013, allocations: 12.03 kB / 496.2 MB, free: 1.355 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.171e-05/0.1014, allocations: 12.75 kB / 496.2 MB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005673/0.1019, allocations: 280.6 kB / 496.4 MB, free: 1.027 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.1019, allocations: 4.375 kB / 496.4 MB, free: 1.023 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.201e-05/0.102, allocations: 8.375 kB / 496.5 MB, free: 1.016 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001847/0.1022, allocations: 102 kB / 496.6 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.1022, allocations: 3.938 kB / 496.6 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.1022, allocations: 0 / 496.6 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.1022, allocations: 8 kB / 496.6 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001502/0.1024, allocations: 79.94 kB / 496.6 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006881/0.1031, allocations: 424.4 kB / 497.1 MB, free: 364 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003813/0.1035, allocations: 146.7 kB / 497.2 MB, free: 208 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.327e-05/0.1036, allocations: 52.83 kB / 497.3 MB, free: 152 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.153e-05/0.1036, allocations: 7.984 kB / 497.3 MB, free: 144 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.1036, allocations: 30.56 kB / 497.3 MB, free: 104 kB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.1037, allocations: 4 kB / 497.3 MB, free: 100 kB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.002568/0.1062, allocations: 479.1 kB / 497.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.435e-05/0.1063, allocations: 59.33 kB / 497.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004688/0.1068, allocations: 237.4 kB / 498.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.1068, allocations: 25.7 kB / 498.1 MB, free: 15.26 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.382e-05/0.1069, allocations: 116.1 kB / 498.2 MB, free: 15.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.63e-05/0.1069, allocations: 31.55 kB / 498.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.838e-05/0.107, allocations: 21.72 kB / 498.2 MB, free: 15.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.1071, allocations: 326.8 kB / 498.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.399e-05/0.1072, allocations: 35.97 kB / 498.6 MB, free: 14.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.122e-05/0.1073, allocations: 39.92 kB / 498.6 MB, free: 14.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.1087, allocations: 296.5 kB / 498.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1087, allocations: 0 / 498.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0009877/0.1097, allocations: 242.7 kB / 499.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.1097, allocations: 7.938 kB / 499.2 MB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.1097, allocations: 4 kB / 499.2 MB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008848/0.1106, allocations: 112.8 kB / 499.3 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.155e-05/0.1107, allocations: 8 kB / 499.3 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003675/0.1144, allocations: 1.892 MB / 0.4894 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.1146, allocations: 23.98 kB / 0.4895 GB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.1147, allocations: 4 kB / 0.4895 GB, free: 11.94 MB / 382.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.0001368/0.1148, allocations: 138.6 kB / 0.4896 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.053e-05/0.1149, allocations: 19.75 kB / 0.4896 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008248/0.1157, allocations: 263.7 kB / 0.4899 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1157, allocations: 4 kB / 0.4899 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.1157, allocations: 3.938 kB / 0.4899 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.1157, allocations: 0 / 0.4899 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002546/0.116, allocations: 237.4 kB / 0.4901 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.116, allocations: 0 / 0.4901 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.677e-05/0.1161, allocations: 11.98 kB / 0.4901 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006204/0.1167, allocations: 112.8 kB / 0.4902 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.1167, allocations: 4 kB / 0.4902 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002663/0.1194, allocations: 1.802 MB / 0.492 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1194, allocations: 0 / 0.492 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008965/0.1203, allocations: 404.1 kB / 0.4924 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.112e-05/0.1204, allocations: 93.09 kB / 0.4925 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.559e-05/0.1205, allocations: 7.938 kB / 0.4925 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.1207, allocations: 23.97 kB / 0.4925 GB, free: 8.594 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.957e-05/0.1207, allocations: 11.92 kB / 0.4925 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.1208, allocations: 8 kB / 0.4925 GB, free: 8.574 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003762/0.1211, allocations: 192.8 kB / 0.4927 GB, free: 8.387 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1211, allocations: 0 / 0.4927 GB, free: 8.387 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003099/0.1215, allocations: 28 kB / 0.4927 GB, free: 8.359 MB / 382.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.0001419/0.1216, allocations: 111.2 kB / 0.4928 GB, free: 8.242 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000449/0.1221, allocations: 238.2 kB / 0.493 GB, free: 8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.1221, allocations: 7.938 kB / 0.4931 GB, free: 7.992 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002413/0.1223, allocations: 198.5 kB / 0.4932 GB, free: 7.785 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000318/0.1227, allocations: 29.48 kB / 0.4933 GB, free: 7.758 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005778/0.1232, allocations: 344.3 kB / 0.4936 GB, free: 7.395 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.1235, allocations: 0.7241 MB / 0.4943 GB, free: 6.645 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.242e-05/0.1236, allocations: 11.44 kB / 0.4943 GB, free: 6.633 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1236, allocations: 4 kB / 0.4943 GB, free: 6.629 MB / 382.1 MB Notification: Performance of Templates: time 0.004524/0.1281, allocations: 2.424 MB / 0.4967 GB, free: 4.203 MB / 382.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)