Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Pumps_valve.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_component_models.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") translateModel(AES.Coursework.ThermSys_component_models.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 104.7 kB / 15.98 MB, free: 6.34 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.001219/0.001219, allocations: 197.8 kB / 16.91 MB, free: 6.184 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.206/1.206, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08673/0.08673, allocations: 22.34 MB / 313.1 MB, free: 9.121 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 62.92 kB / 380.9 MB, free: 41.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0729/0.07416, allocations: 54.96 MB / 435.9 MB, free: 13.49 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Pumps_valve): time 0.02919/0.1034, allocations: 22.51 MB / 458.4 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.1045, allocations: 430.7 kB / 458.8 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002407/0.1047, allocations: 4 kB / 458.8 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001204/0.1049, allocations: 27.77 kB / 458.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002745/0.1051, allocations: 91.23 kB / 458.9 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003286/0.1055, allocations: 83.92 kB / 459 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004028/0.1059, allocations: 418.2 kB / 459.4 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003409/0.1062, allocations: 234.9 kB / 459.6 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001918/0.1064, allocations: 163.3 kB / 459.8 MB, free: 5.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.1067, allocations: 215.1 kB / 460 MB, free: 5.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.284e-05/0.1068, allocations: 36 kB / 460.1 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.1069, allocations: 67.97 kB / 460.1 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.216e-05/0.107, allocations: 91.66 kB / 460.2 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.1071, allocations: 199 kB / 460.4 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002973/0.1074, allocations: 319.2 kB / 460.7 MB, free: 4.781 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1074, allocations: 0 / 460.7 MB, free: 4.781 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1074, allocations: 0 / 460.7 MB, free: 4.781 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.1075, allocations: 0 / 460.7 MB, free: 4.781 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001148/0.1086, allocations: 0.6817 MB / 461.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.1086, allocations: 12.03 kB / 461.4 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.584e-05/0.1087, allocations: 40.47 kB / 461.4 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000357/0.1091, allocations: 307.9 kB / 461.7 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.1091, allocations: 20.94 kB / 461.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.438e-05/0.1092, allocations: 24.38 kB / 461.8 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005461/0.1097, allocations: 281.4 kB / 462.1 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1098, allocations: 192 / 462.1 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.246e-05/0.1098, allocations: 15.94 kB / 462.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.1098, allocations: 4 kB / 462.1 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005675/0.1104, allocations: 254 kB / 462.3 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.1118, allocations: 0.8148 MB / 463.1 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004978/0.1123, allocations: 238.6 kB / 463.4 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003211/0.1126, allocations: 140.8 kB / 463.5 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.1126, allocations: 7.984 kB / 463.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.1127, allocations: 46.48 kB / 463.6 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002135/0.1129, allocations: 43.77 kB / 463.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.823e-06/0.1129, allocations: 0 / 463.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.003474/0.1164, allocations: 0.9728 MB / 464.6 MB, free: 0.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.1164, allocations: 55.41 kB / 464.6 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002519/0.1167, allocations: 287.4 kB / 464.9 MB, free: 312 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.1167, allocations: 29.7 kB / 465 MB, free: 276 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.1168, allocations: 180.5 kB / 465.1 MB, free: 92 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.447e-05/0.1169, allocations: 86.83 kB / 465.2 MB, free: 4 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.625e-05/0.117, allocations: 46 kB / 465.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.1171, allocations: 338.8 kB / 465.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002541/0.1174, allocations: 108.4 kB / 465.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/0.1176, allocations: 97.58 kB / 465.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004957/0.1181, allocations: 239.8 kB / 466 MB, free: 15.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.1181, allocations: 3.938 kB / 466 MB, free: 15.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001727/0.1199, allocations: 499.5 kB / 466.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.1199, allocations: 7.984 kB / 466.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.1199, allocations: 4 kB / 466.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001174/0.1211, allocations: 202.3 kB / 466.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005802/0.1217, allocations: 87.91 kB / 466.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003902/0.1256, allocations: 4.77 MB / 471.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002368/0.1258, allocations: 11.98 kB / 471.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.39e-05/0.1259, allocations: 11.98 kB / 471.6 MB, free: 9.234 MB / 350.1 MB 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 (18): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001512/0.126, allocations: 153.7 kB / 471.8 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.083e-05/0.1261, allocations: 31.62 kB / 471.8 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001343/0.1274, allocations: 0.5103 MB / 472.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.1275, allocations: 4 kB / 472.3 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1275, allocations: 4.062 kB / 472.3 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.1275, allocations: 7.938 kB / 472.3 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001685/0.1292, allocations: 0.9342 MB / 473.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1292, allocations: 0 / 473.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005003/0.1297, allocations: 95.92 kB / 473.3 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006318/0.1303, allocations: 146.5 kB / 473.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.175e-05/0.1304, allocations: 4 kB / 473.5 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002813/0.1332, allocations: 4.423 MB / 477.9 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1332, allocations: 0 / 477.9 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.1344, allocations: 0.5598 MB / 478.5 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.939e-05/0.1345, allocations: 108.7 kB / 478.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.718e-05/0.1345, allocations: 8 kB / 478.6 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.1348, allocations: 20.11 kB / 478.6 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.733e-05/0.1348, allocations: 31.81 kB / 478.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.1349, allocations: 12 kB / 478.6 MB, free: 1.715 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001727/0.135, allocations: 209.9 kB / 478.8 MB, free: 1.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1351, allocations: 0 / 478.8 MB, free: 1.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004937/0.1356, allocations: 99.84 kB / 478.9 MB, free: 1.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000145/0.1357, allocations: 103.2 kB / 479 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001864/0.1376, allocations: 0.6533 MB / 479.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1376, allocations: 0 / 479.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007865/0.1384, allocations: 460.9 kB / 480.2 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003732/0.1388, allocations: 55.73 kB / 480.2 MB, free: 96 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.1398, allocations: 0.7872 MB / 481 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.1401, allocations: 0.7923 MB / 481.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.685e-05/0.1402, allocations: 27.42 kB / 481.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1402, allocations: 0 / 481.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of Templates: time 0.009462/0.1496, allocations: 9.12 MB / 490.9 MB, free: 5.316 MB / 366.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Pumps_valve.sim & ./AES_AES.Coursework.ThermSys_component_models.Pumps_valve -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1)