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_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 105.8 kB / 15.99 MB, free: 6.348 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.001164/0.001164, allocations: 191.6 kB / 16.91 MB, free: 6.188 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.228/1.228, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08526/0.08526, allocations: 22.33 MB / 313.1 MB, free: 9.148 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 65.27 kB / 380.9 MB, free: 41.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07418/0.07547, allocations: 54.96 MB / 435.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.004026/0.07953, allocations: 3.286 MB / 439.2 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.08124, allocations: 0.9821 MB / 440.2 MB, free: 9.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000225/0.08148, allocations: 4 kB / 440.2 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001794/0.08167, allocations: 47.61 kB / 440.2 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003607/0.08206, allocations: 151 kB / 440.4 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004541/0.08252, allocations: 167.7 kB / 440.5 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005789/0.08311, allocations: 0.7059 MB / 441.2 MB, free: 8.184 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004403/0.08355, allocations: 387.7 kB / 441.6 MB, free: 7.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002787/0.08384, allocations: 303 kB / 441.9 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000432/0.08429, allocations: 426.7 kB / 442.3 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.707e-05/0.08438, allocations: 68 kB / 442.4 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.08455, allocations: 99.97 kB / 442.5 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001687/0.08473, allocations: 215.4 kB / 442.7 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002683/0.085, allocations: 326.5 kB / 443 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004826/0.08549, allocations: 0.5809 MB / 443.6 MB, free: 5.809 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.0855, allocations: 0 / 443.6 MB, free: 5.809 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.08551, allocations: 0 / 443.6 MB, free: 5.809 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.08552, allocations: 0 / 443.6 MB, free: 5.809 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001855/0.08738, allocations: 0.912 MB / 444.5 MB, free: 4.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.08743, allocations: 12.03 kB / 444.5 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.08756, allocations: 56.28 kB / 444.6 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004388/0.088, allocations: 399.6 kB / 445 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.778e-05/0.08804, allocations: 29.38 kB / 445 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.333e-05/0.08813, allocations: 44.38 kB / 445 MB, free: 4.277 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009288/0.08907, allocations: 0.5415 MB / 445.6 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.08909, allocations: 0 / 445.6 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.195e-05/0.08915, allocations: 16 kB / 445.6 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.08917, allocations: 11.98 kB / 445.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009205/0.09009, allocations: 0.5387 MB / 446.1 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002841/0.09294, allocations: 1.539 MB / 447.7 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008136/0.09377, allocations: 0.4891 MB / 448.2 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004641/0.09425, allocations: 262 kB / 448.4 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.382e-05/0.0943, allocations: 12.58 kB / 448.4 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.09433, allocations: 39 kB / 448.5 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000249/0.09459, allocations: 55.58 kB / 448.5 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 1.673e-06/0.0946, allocations: 0 / 448.5 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of matching and sorting (n=48): time 0.002918/0.09752, allocations: 1.1 MB / 449.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.119e-05/0.09756, allocations: 59.78 kB / 449.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003772/0.09795, allocations: 393.5 kB / 450.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.406e-05/0.098, allocations: 29.7 kB / 450.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.09814, allocations: 244 kB / 450.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/0.09829, allocations: 189.3 kB / 450.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001996/0.0985, allocations: 122.2 kB / 450.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.09863, allocations: 358.8 kB / 451 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004696/0.0991, allocations: 257.2 kB / 451.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005419/0.09965, allocations: 366.1 kB / 451.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009843/0.1006, allocations: 0.6265 MB / 452.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1007, allocations: 0 / 452.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00193/0.1026, allocations: 0.855 MB / 453.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1026, allocations: 4.766 kB / 453.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.1026, allocations: 4 kB / 453.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/0.1038, allocations: 177.9 kB / 453.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.1051, allocations: 243.7 kB / 453.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007321/0.1059, allocations: 1.155 MB / 454.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004997/0.1064, allocations: 27.98 kB / 454.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.711e-05/0.1064, allocations: 31.97 kB / 454.7 MB, free: 10.27 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002329/0.1067, allocations: 193.5 kB / 454.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.558e-05/0.1068, allocations: 43.44 kB / 454.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001893/0.1087, allocations: 0.822 MB / 455.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.084e-06/0.1087, allocations: 8 kB / 455.8 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.1087, allocations: 3.984 kB / 455.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.1087, allocations: 0 / 455.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002458/0.1112, allocations: 1.467 MB / 457.2 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.1112, allocations: 0 / 457.2 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.1123, allocations: 203.7 kB / 457.4 MB, free: 7.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008464/0.1131, allocations: 161.6 kB / 457.6 MB, free: 7.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.82e-05/0.1132, allocations: 19.98 kB / 457.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007153/0.1139, allocations: 1.163 MB / 458.8 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.114, allocations: 0 / 458.8 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0021/0.1161, allocations: 1.133 MB / 459.9 MB, free: 4.895 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.1162, allocations: 124.5 kB / 460 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.278e-05/0.1163, allocations: 24 kB / 460.1 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004144/0.1167, allocations: 27.88 kB / 460.1 MB, free: 4.703 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.1168, allocations: 40.48 kB / 460.1 MB, free: 4.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-05/0.1169, allocations: 19.98 kB / 460.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002625/0.1171, allocations: 275.2 kB / 460.4 MB, free: 4.379 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1171, allocations: 0 / 460.4 MB, free: 4.379 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005295/0.1177, allocations: 167.8 kB / 460.6 MB, free: 4.215 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (streamNL.T[1],streamNL.T[2],streamNL.T[3],streamNL.T[4],streamNL.T[5],streamLIN.T[1],streamLIN.T[2],streamLIN.T[3],streamLIN.T[4],streamLIN.T[5]) * 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 (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001859/0.1179, allocations: 133.4 kB / 460.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.1196, allocations: 0.7765 MB / 461.5 MB, free: 3.297 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1196, allocations: 0.75 kB / 461.5 MB, free: 3.297 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007597/0.1203, allocations: 363.2 kB / 461.8 MB, free: 2.945 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005324/0.1209, allocations: 113.5 kB / 462 MB, free: 2.832 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003393/0.1243, allocations: 2.026 MB / 464 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003906/0.1247, allocations: 0.8596 MB / 464.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002541/0.125, allocations: 63.34 kB / 464.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.125, allocations: 7.938 kB / 464.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of Templates: time 0.01207/0.137, allocations: 10.53 MB / 475.4 MB, free: 5.328 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)