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.001428/0.001428, allocations: 107.8 kB / 15.78 MB, free: 5.484 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.001416/0.001416, allocations: 198.8 kB / 16.73 MB, free: 5.363 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.579/1.579, allocations: 225.6 MB / 243.1 MB, free: 3.688 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0962/0.0962, allocations: 22.68 MB / 318.7 MB, free: 9.844 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002359/0.002359, allocations: 65.86 kB / 448.9 MB, free: 39.89 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1351, allocations: 58.03 MB / 0.4951 GB, free: 8.789 MB / 366.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.03406/0.1692, allocations: 22.83 MB / 0.5174 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.1704, allocations: 394.9 kB / 0.5178 GB, free: 1.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.1705, allocations: 4 kB / 0.5178 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001339/0.1707, allocations: 47.5 kB / 0.5178 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002594/0.1709, allocations: 111 kB / 0.5179 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003541/0.1713, allocations: 103.8 kB / 0.518 GB, free: 1.445 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00045/0.1717, allocations: 410.2 kB / 0.5184 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003604/0.1721, allocations: 226.7 kB / 0.5186 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001914/0.1723, allocations: 163.5 kB / 0.5188 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000297/0.1726, allocations: 219.1 kB / 0.519 GB, free: 456 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.23e-05/0.1726, allocations: 36 kB / 0.519 GB, free: 420 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001464/0.1728, allocations: 71.95 kB / 0.5191 GB, free: 348 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.131e-05/0.1729, allocations: 87.67 kB / 0.5192 GB, free: 260 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00019/0.1731, allocations: 195 kB / 0.5194 GB, free: 64 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00053/0.1736, allocations: 450.2 kB / 0.5198 GB, free: 15.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1736, allocations: 3.938 kB / 0.5198 GB, free: 15.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1736, allocations: 4 kB / 0.5198 GB, free: 15.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.1736, allocations: 0 / 0.5198 GB, free: 15.61 MB / 398.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.001266/0.1749, allocations: 0.6775 MB / 0.5205 GB, free: 14.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1749, allocations: 12.03 kB / 0.5205 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.029e-05/0.175, allocations: 40.7 kB / 0.5205 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004335/0.1754, allocations: 304.2 kB / 0.5208 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.106e-05/0.1755, allocations: 24.92 kB / 0.5208 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.086e-05/0.1755, allocations: 32.31 kB / 0.5209 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006102/0.1761, allocations: 281.3 kB / 0.5211 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.1761, allocations: 192 / 0.5211 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.807e-05/0.1762, allocations: 19.94 kB / 0.5211 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.1762, allocations: 8 kB / 0.5212 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006428/0.1768, allocations: 258.1 kB / 0.5214 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.1784, allocations: 0.8073 MB / 0.5222 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005666/0.1789, allocations: 220.9 kB / 0.5224 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003683/0.1793, allocations: 132.8 kB / 0.5225 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.89e-05/0.1793, allocations: 11.97 kB / 0.5225 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.1794, allocations: 42.5 kB / 0.5226 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002878/0.1797, allocations: 63.77 kB / 0.5226 GB, free: 12.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.753e-06/0.1797, allocations: 3.938 kB / 0.5226 GB, free: 12.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.003781/0.1834, allocations: 0.9632 MB / 0.5236 GB, free: 11.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.1835, allocations: 59.39 kB / 0.5236 GB, free: 11.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003306/0.1838, allocations: 283.4 kB / 0.5239 GB, free: 11.15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.653e-05/0.1839, allocations: 29.7 kB / 0.5239 GB, free: 11.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.1841, allocations: 184.7 kB / 0.5241 GB, free: 10.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.573e-05/0.1841, allocations: 87.27 kB / 0.5242 GB, free: 10.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.1843, allocations: 49.91 kB / 0.5242 GB, free: 10.79 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.1844, allocations: 338.8 kB / 0.5246 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/0.1847, allocations: 100.4 kB / 0.5247 GB, free: 10.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000267/0.185, allocations: 102.7 kB / 0.5248 GB, free: 10.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005725/0.1855, allocations: 242.4 kB / 0.525 GB, free: 10.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.1855, allocations: 3.938 kB / 0.525 GB, free: 10.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0019/0.1874, allocations: 499.5 kB / 0.5255 GB, free: 9.508 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.1875, allocations: 8 kB / 0.5255 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.1875, allocations: 0 / 0.5255 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001231/0.1887, allocations: 202.3 kB / 0.5257 GB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006142/0.1893, allocations: 87.86 kB / 0.5258 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005244/0.1946, allocations: 4.771 MB / 0.5304 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002786/0.1948, allocations: 16.02 kB / 0.5304 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.011e-05/0.1949, allocations: 15.98 kB / 0.5304 GB, free: 4.062 MB / 398.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.0002259/0.1951, allocations: 143.5 kB / 0.5306 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.513e-05/0.1952, allocations: 27.81 kB / 0.5306 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/0.1967, allocations: 0.5099 MB / 0.5311 GB, free: 3.359 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.1967, allocations: 11.92 kB / 0.5311 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1967, allocations: 0 / 0.5311 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1967, allocations: 144 / 0.5311 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/0.1985, allocations: 0.935 MB / 0.532 GB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.1986, allocations: 0 / 0.532 GB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005059/0.1991, allocations: 87.81 kB / 0.5321 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006795/0.1997, allocations: 150.4 kB / 0.5323 GB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.401e-05/0.1998, allocations: 12 kB / 0.5323 GB, free: 2.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003688/0.2034, allocations: 4.424 MB / 0.5366 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.2034, allocations: 4.062 kB / 0.5366 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.2048, allocations: 0.5493 MB / 0.5371 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.718e-05/0.2049, allocations: 116.8 kB / 0.5372 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.633e-05/0.2049, allocations: 4 kB / 0.5372 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002267/0.2051, allocations: 15.98 kB / 0.5373 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.766e-05/0.2052, allocations: 35.95 kB / 0.5373 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.2052, allocations: 8 kB / 0.5373 GB, free: 12.56 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002235/0.2054, allocations: 213.9 kB / 0.5375 GB, free: 12.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2054, allocations: 0 / 0.5375 GB, free: 12.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005675/0.206, allocations: 91.89 kB / 0.5376 GB, free: 12.27 MB / 414.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.0001664/0.2062, allocations: 110.2 kB / 0.5377 GB, free: 12.15 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002037/0.2082, allocations: 0.6453 MB / 0.5383 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2082, allocations: 0 / 0.5383 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008944/0.2091, allocations: 441 kB / 0.5387 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004074/0.2095, allocations: 52.58 kB / 0.5388 GB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.2107, allocations: 0.6335 MB / 0.5394 GB, free: 10.31 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004118/0.2111, allocations: 0.7844 MB / 0.5402 GB, free: 9.504 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001196/0.2112, allocations: 30.97 kB / 0.5402 GB, free: 9.473 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.747e-05/0.2113, allocations: 27.44 kB / 0.5402 GB, free: 9.445 MB / 414.1 MB Notification: Performance of SimCode: time 6.32e-07/0.2113, allocations: 0 / 0.5402 GB, free: 9.445 MB / 414.1 MB Notification: Performance of Templates: time 0.01103/0.2223, allocations: 5.257 MB / 0.5454 GB, free: 4.207 MB / 414.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)