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.001552/0.001552, allocations: 106.7 kB / 16.41 MB, free: 6.027 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.001642/0.001642, allocations: 180.2 kB / 17.34 MB, free: 5.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.325/1.325, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09145/0.09145, allocations: 22.32 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 71.91 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1215, allocations: 54.95 MB / 492.7 MB, free: 4.781 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.002573/0.1241, allocations: 0.974 MB / 493.7 MB, free: 3.809 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001858/0.126, allocations: 1.209 MB / 494.9 MB, free: 2.582 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.1262, allocations: 4 kB / 494.9 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003729/0.1266, allocations: 35.77 kB / 494.9 MB, free: 2.543 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002135/0.1268, allocations: 51.75 kB / 495 MB, free: 2.492 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002194/0.127, allocations: 71.89 kB / 495 MB, free: 2.422 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003187/0.1274, allocations: 207.6 kB / 495.2 MB, free: 2.219 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.1275, allocations: 33.36 kB / 495.3 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.1277, allocations: 79.73 kB / 495.3 MB, free: 2.102 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002061/0.1279, allocations: 91.7 kB / 495.4 MB, free: 2.012 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.563e-05/0.1279, allocations: 12 kB / 495.4 MB, free: 2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.845e-05/0.128, allocations: 8 kB / 495.5 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.93e-05/0.1281, allocations: 39.83 kB / 495.5 MB, free: 1.953 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.615e-05/0.1281, allocations: 51.66 kB / 495.5 MB, free: 1.902 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.1283, allocations: 115.5 kB / 495.7 MB, free: 1.789 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.1283, allocations: 0 / 495.7 MB, free: 1.789 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1284, allocations: 0 / 495.7 MB, free: 1.789 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.1284, allocations: 0 / 495.7 MB, free: 1.789 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.001161/0.1295, allocations: 0.4949 MB / 496.2 MB, free: 1.246 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.1296, allocations: 12.03 kB / 496.2 MB, free: 1.234 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.515e-05/0.1296, allocations: 12.75 kB / 496.2 MB, free: 1.223 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005624/0.1302, allocations: 276.6 kB / 496.4 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.1302, allocations: 8.375 kB / 496.5 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.078e-05/0.1303, allocations: 4.375 kB / 496.5 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002181/0.1305, allocations: 101.9 kB / 496.6 MB, free: 0.793 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.1305, allocations: 0 / 496.6 MB, free: 0.793 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.1305, allocations: 8 kB / 496.6 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-06/0.1305, allocations: 0 / 496.6 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001623/0.1307, allocations: 79.94 kB / 496.6 MB, free: 0.707 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007158/0.1314, allocations: 424.4 kB / 497.1 MB, free: 248 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004062/0.1319, allocations: 154.7 kB / 497.2 MB, free: 84 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.034e-05/0.132, allocations: 44.84 kB / 497.3 MB, free: 36 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.132, allocations: 4 kB / 497.3 MB, free: 32 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/0.132, allocations: 38.55 kB / 497.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.512e-06/0.132, allocations: 0 / 497.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.002596/0.1346, allocations: 491 kB / 497.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.1347, allocations: 51.41 kB / 497.8 MB, free: 15.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004681/0.1352, allocations: 229.4 kB / 498 MB, free: 15.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.1352, allocations: 29.7 kB / 498.1 MB, free: 15.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.454e-05/0.1353, allocations: 116.1 kB / 498.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.552e-05/0.1353, allocations: 31.55 kB / 498.2 MB, free: 15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.257e-05/0.1354, allocations: 29.7 kB / 498.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1355, allocations: 322.8 kB / 498.6 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.58e-05/0.1356, allocations: 32.36 kB / 498.6 MB, free: 14.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.132e-05/0.1357, allocations: 39.97 kB / 498.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001384/0.1371, allocations: 300.4 kB / 498.9 MB, free: 14.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1371, allocations: 0 / 498.9 MB, free: 14.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0009594/0.138, allocations: 246.2 kB / 499.2 MB, free: 14.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.1381, allocations: 4 kB / 499.2 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1381, allocations: 4 kB / 499.2 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009098/0.139, allocations: 112.8 kB / 499.3 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.393e-05/0.1391, allocations: 11.98 kB / 499.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003749/0.1428, allocations: 1.884 MB / 0.4894 GB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.1431, allocations: 24 kB / 0.4895 GB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.1431, allocations: 4 kB / 0.4895 GB, free: 11.83 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.0001396/0.1432, allocations: 134.5 kB / 0.4896 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.564e-05/0.1433, allocations: 23.81 kB / 0.4896 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008354/0.1441, allocations: 263.2 kB / 0.4899 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1441, allocations: 8 kB / 0.4899 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.1442, allocations: 3.938 kB / 0.4899 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.1442, allocations: 0 / 0.4899 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002782/0.1444, allocations: 241.4 kB / 0.4901 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.1445, allocations: 0 / 0.4901 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.341e-05/0.1446, allocations: 8 kB / 0.4901 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006065/0.1452, allocations: 108.8 kB / 0.4902 GB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.1452, allocations: 3.984 kB / 0.4902 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002744/0.1479, allocations: 1.817 MB / 0.492 GB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.148, allocations: 0 / 0.492 GB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008805/0.1488, allocations: 392 kB / 0.4924 GB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.239e-05/0.1489, allocations: 89.05 kB / 0.4925 GB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.149, allocations: 7.938 kB / 0.4925 GB, free: 8.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.1492, allocations: 32.02 kB / 0.4925 GB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.125e-05/0.1492, allocations: 12 kB / 0.4925 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.1493, allocations: 7.938 kB / 0.4925 GB, free: 8.457 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003831/0.1496, allocations: 188.8 kB / 0.4927 GB, free: 8.273 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1497, allocations: 4 kB / 0.4927 GB, free: 8.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002927/0.15, allocations: 32 kB / 0.4927 GB, free: 8.238 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.0001385/0.1501, allocations: 103.2 kB / 0.4928 GB, free: 8.129 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004773/0.1506, allocations: 242.5 kB / 0.4931 GB, free: 7.879 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1506, allocations: 0 / 0.4931 GB, free: 7.879 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002535/0.1509, allocations: 194.5 kB / 0.4932 GB, free: 7.676 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003347/0.1512, allocations: 38.36 kB / 0.4933 GB, free: 7.641 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005992/0.1518, allocations: 337.2 kB / 0.4936 GB, free: 7.281 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.1522, allocations: 0.7319 MB / 0.4943 GB, free: 6.523 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.653e-05/0.1522, allocations: 11.44 kB / 0.4943 GB, free: 6.512 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1522, allocations: 4 kB / 0.4943 GB, free: 6.508 MB / 382.1 MB Notification: Performance of Templates: time 0.004841/0.1571, allocations: 2.408 MB / 0.4967 GB, free: 4.102 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)