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_003.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08964/0.08964, allocations: 21.6 MB / 37.4 MB, free: 0.7812 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001098/0.001098, allocations: 188.5 kB / 43.63 MB, free: 3.566 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.322/1.322, allocations: 205.1 MB / 254.8 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001028/0.001028, allocations: 100 kB / 307.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 52.67 kB / 372.3 MB, free: 59.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07892/0.08034, allocations: 51.97 MB / 424.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.003685/0.08406, allocations: 3.801 MB / 428.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.08579, allocations: 1.095 MB / 429.2 MB, free: 9.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003949/0.08621, allocations: 4 kB / 429.2 MB, free: 9.566 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002454/0.08646, allocations: 59.53 kB / 429.3 MB, free: 9.508 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005133/0.08701, allocations: 178.8 kB / 429.4 MB, free: 9.332 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004334/0.08746, allocations: 175.8 kB / 429.6 MB, free: 9.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007351/0.0882, allocations: 0.9315 MB / 430.5 MB, free: 8.227 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005612/0.08877, allocations: 0.5321 MB / 431.1 MB, free: 7.691 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004169/0.0892, allocations: 374.8 kB / 431.4 MB, free: 7.324 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006596/0.08987, allocations: 0.553 MB / 432 MB, free: 6.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.09004, allocations: 68 kB / 432.1 MB, free: 6.703 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002439/0.09029, allocations: 104 kB / 432.2 MB, free: 6.602 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.09048, allocations: 243.2 kB / 432.4 MB, free: 6.363 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002867/0.09077, allocations: 398.2 kB / 432.8 MB, free: 5.973 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005604/0.09134, allocations: 1.005 MB / 433.8 MB, free: 4.965 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.09135, allocations: 0 / 433.8 MB, free: 4.965 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.09136, allocations: 0 / 433.8 MB, free: 4.965 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.09137, allocations: 0 / 433.8 MB, free: 4.965 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.00203/0.09341, allocations: 1.085 MB / 434.9 MB, free: 3.832 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.09345, allocations: 12.03 kB / 434.9 MB, free: 3.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.09359, allocations: 68.09 kB / 435 MB, free: 3.754 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005005/0.09409, allocations: 447.3 kB / 435.4 MB, free: 3.277 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/0.09413, allocations: 45.62 kB / 435.4 MB, free: 3.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-05/0.09423, allocations: 60.28 kB / 435.5 MB, free: 3.172 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009546/0.09519, allocations: 0.7367 MB / 436.2 MB, free: 2.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.09521, allocations: 0 / 436.2 MB, free: 2.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.076e-05/0.09528, allocations: 20 kB / 436.3 MB, free: 2.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.0953, allocations: 20 kB / 436.3 MB, free: 2.391 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/0.09643, allocations: 0.8093 MB / 437.1 MB, free: 1.582 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004086/0.1005, allocations: 2.396 MB / 439.5 MB, free: 15.12 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.1015, allocations: 0.6255 MB / 440.1 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007184/0.1023, allocations: 419 kB / 440.5 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001553/0.1024, allocations: 105.6 kB / 440.6 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.1025, allocations: 43.06 kB / 440.7 MB, free: 13.9 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005496/0.103, allocations: 159.3 kB / 440.8 MB, free: 13.74 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 2.275e-06/0.1031, allocations: 4 kB / 440.8 MB, free: 13.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.01001/0.1131, allocations: 2.486 MB / 443.3 MB, free: 11.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/0.1131, allocations: 55.97 kB / 443.4 MB, free: 11.11 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004558/0.1136, allocations: 449.8 kB / 443.8 MB, free: 10.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.074e-05/0.1137, allocations: 37.7 kB / 443.8 MB, free: 10.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.1138, allocations: 256.7 kB / 444.1 MB, free: 10.37 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.114, allocations: 244.5 kB / 444.3 MB, free: 10.12 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002422/0.1143, allocations: 162.6 kB / 444.5 MB, free: 9.961 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1144, allocations: 362.8 kB / 444.8 MB, free: 9.598 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005737/0.115, allocations: 341.8 kB / 445.2 MB, free: 9.262 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006464/0.1156, allocations: 470.7 kB / 445.6 MB, free: 8.762 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.1168, allocations: 0.8143 MB / 446.4 MB, free: 7.906 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.1168, allocations: 8 kB / 446.5 MB, free: 7.898 MB / 314.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.006334/0.1232, allocations: 1.705 MB / 448.2 MB, free: 6.176 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.1232, allocations: 12.03 kB / 448.2 MB, free: 6.164 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1232, allocations: 4 kB / 448.2 MB, free: 6.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006811/0.1301, allocations: 0.9662 MB / 449.1 MB, free: 5.184 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/0.1314, allocations: 251.6 kB / 449.4 MB, free: 4.938 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005072/0.1365, allocations: 3.823 MB / 453.2 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006536/0.1372, allocations: 32.02 kB / 453.2 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.255e-05/0.1373, allocations: 47.95 kB / 453.3 MB, free: 0.8398 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (78): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002976/0.1376, allocations: 201.7 kB / 453.5 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.1377, allocations: 51.34 kB / 453.5 MB, free: 0.582 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004571/0.1423, allocations: 1.458 MB / 455 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.1423, allocations: 8 kB / 455 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.1423, allocations: 0 / 455 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.689e-06/0.1423, allocations: 7.922 kB / 455 MB, free: 15.08 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00515/0.1475, allocations: 2.123 MB / 457.1 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.175e-05/0.1475, allocations: 3.984 kB / 457.1 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.1486, allocations: 207.8 kB / 457.3 MB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00469/0.1533, allocations: 0.7011 MB / 458 MB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.149e-05/0.1534, allocations: 27.98 kB / 458.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003312/0.1567, allocations: 3.189 MB / 461.3 MB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1568, allocations: 0 / 461.3 MB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05058/0.2073, allocations: 17.89 MB / 479.1 MB, free: 6.082 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.2075, allocations: 140.2 kB / 479.3 MB, free: 5.926 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.2077, allocations: 23.91 kB / 479.3 MB, free: 5.902 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005128/0.2082, allocations: 28.08 kB / 479.3 MB, free: 5.875 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.2084, allocations: 64.84 kB / 479.4 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.628e-05/0.2085, allocations: 20 kB / 479.4 MB, free: 5.793 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003287/0.2088, allocations: 319.1 kB / 479.7 MB, free: 5.477 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2088, allocations: 4 kB / 479.7 MB, free: 5.473 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00111/0.2099, allocations: 367.8 kB / 480.1 MB, free: 5.113 MB / 346.7 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 (65): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001985/0.2101, allocations: 139.3 kB / 480.2 MB, free: 4.969 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002158/0.2123, allocations: 1.09 MB / 481.3 MB, free: 3.871 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2123, allocations: 0 / 481.3 MB, free: 3.871 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.2134, allocations: 0.633 MB / 482 MB, free: 3.223 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005851/0.214, allocations: 132.4 kB / 482.1 MB, free: 3.094 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005696/0.2198, allocations: 3.308 MB / 485.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004769/0.2202, allocations: 0.9436 MB / 486.3 MB, free: 14.73 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005943/0.2209, allocations: 161.1 kB / 486.5 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003216/0.2212, allocations: 75.39 kB / 486.6 MB, free: 14.5 MB / 362.7 MB Notification: Performance of SimCode: time 2.175e-06/0.2212, allocations: 4 kB / 486.6 MB, free: 14.5 MB / 362.7 MB Notification: Performance of Templates: time 0.02716/0.2484, allocations: 19.52 MB / 0.4942 GB, free: 10.96 MB / 378.7 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1)