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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Pumps_valve,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Pumps_valve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Pumps_valve,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Pumps_valve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005022/0.005022, allocations: 96.42 kB / 15.73 MB, free: 5.988 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.001217/0.001217, allocations: 188 kB / 16.67 MB, free: 5.918 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1979/0.1979, allocations: 22.36 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 70.92 kB / 436.6 MB, free: 34.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08167/0.08348, allocations: 54.96 MB / 491.5 MB, free: 1.719 MB / 350.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.03059/0.1141, allocations: 22.67 MB / 0.5022 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.1152, allocations: 394.9 kB / 0.5025 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001131/0.1153, allocations: 4 kB / 0.5025 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001049/0.1154, allocations: 47.5 kB / 0.5026 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002249/0.1157, allocations: 99.05 kB / 0.5027 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003112/0.116, allocations: 111.8 kB / 0.5028 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004329/0.1164, allocations: 414.2 kB / 0.5032 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003571/0.1168, allocations: 247.6 kB / 0.5034 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001719/0.117, allocations: 163.4 kB / 0.5036 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000257/0.1172, allocations: 215 kB / 0.5038 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.06e-05/0.1173, allocations: 40 kB / 0.5038 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.1175, allocations: 63.97 kB / 0.5039 GB, free: 9.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.767e-05/0.1175, allocations: 83.73 kB / 0.504 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001782/0.1177, allocations: 191 kB / 0.5041 GB, free: 9.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004609/0.1182, allocations: 442.2 kB / 0.5046 GB, free: 8.707 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1182, allocations: 0 / 0.5046 GB, free: 8.707 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.1182, allocations: 7.922 kB / 0.5046 GB, free: 8.699 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.1182, allocations: 4 kB / 0.5046 GB, free: 8.695 MB / 382.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.001179/0.1194, allocations: 0.6971 MB / 0.5053 GB, free: 7.945 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.1195, allocations: 8.031 kB / 0.5053 GB, free: 7.938 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.949e-05/0.1195, allocations: 58.73 kB / 0.5053 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.89e-05/0.1196, allocations: 44.7 kB / 0.5054 GB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003806/0.12, allocations: 312.1 kB / 0.5057 GB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.12, allocations: 16.94 kB / 0.5057 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.929e-05/0.1201, allocations: 24.38 kB / 0.5057 GB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000578/0.1207, allocations: 285.4 kB / 0.506 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.1207, allocations: 3.938 kB / 0.506 GB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/0.1207, allocations: 8 kB / 0.506 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.1207, allocations: 8 kB / 0.506 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006201/0.1214, allocations: 254 kB / 0.5062 GB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.1227, allocations: 0.8074 MB / 0.507 GB, free: 6.027 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005251/0.1233, allocations: 238.7 kB / 0.5072 GB, free: 5.785 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003529/0.1236, allocations: 144.8 kB / 0.5074 GB, free: 5.641 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.1237, allocations: 3.938 kB / 0.5074 GB, free: 5.637 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.1237, allocations: 42.5 kB / 0.5074 GB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001968/0.1239, allocations: 43.83 kB / 0.5075 GB, free: 5.543 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.373e-06/0.1239, allocations: 0 / 0.5075 GB, free: 5.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.003486/0.1274, allocations: 0.9681 MB / 0.5084 GB, free: 4.504 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.1275, allocations: 55.41 kB / 0.5085 GB, free: 4.438 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/0.1278, allocations: 287.4 kB / 0.5087 GB, free: 4.148 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.1278, allocations: 33.7 kB / 0.5088 GB, free: 4.109 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.1279, allocations: 196.6 kB / 0.509 GB, free: 3.914 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.921e-05/0.128, allocations: 71.34 kB / 0.509 GB, free: 3.844 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.098e-05/0.1281, allocations: 49.92 kB / 0.5091 GB, free: 3.789 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.1283, allocations: 342.8 kB / 0.5094 GB, free: 3.445 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000278/0.1286, allocations: 104.3 kB / 0.5095 GB, free: 3.344 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.1288, allocations: 104.9 kB / 0.5096 GB, free: 3.242 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005563/0.1294, allocations: 236.2 kB / 0.5098 GB, free: 3.012 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1294, allocations: 0 / 0.5098 GB, free: 3.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001735/0.1311, allocations: 0.4922 MB / 0.5103 GB, free: 2.504 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.1312, allocations: 10.75 kB / 0.5103 GB, free: 2.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.1312, allocations: 0 / 0.5103 GB, free: 2.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/0.1323, allocations: 206.3 kB / 0.5105 GB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005883/0.1329, allocations: 83.92 kB / 0.5106 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004496/0.1375, allocations: 4.779 MB / 0.5153 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000213/0.1377, allocations: 16.02 kB / 0.5153 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.666e-05/0.1377, allocations: 11.98 kB / 0.5153 GB, free: 13.05 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.0001618/0.1379, allocations: 153 kB / 0.5154 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.868e-05/0.1379, allocations: 27.81 kB / 0.5155 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001372/0.1393, allocations: 0.514 MB / 0.516 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.1393, allocations: 4 kB / 0.516 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1393, allocations: 0 / 0.516 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1394, allocations: 3.984 kB / 0.516 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001773/0.1411, allocations: 0.931 MB / 0.5169 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1412, allocations: 0 / 0.5169 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005203/0.1417, allocations: 91.92 kB / 0.517 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006466/0.1423, allocations: 154.4 kB / 0.5171 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.1424, allocations: 8 kB / 0.5171 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003446/0.1458, allocations: 4.42 MB / 0.5214 GB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1458, allocations: 0 / 0.5214 GB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00129/0.1471, allocations: 0.561 MB / 0.522 GB, free: 5.738 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.609e-05/0.1472, allocations: 112.9 kB / 0.5221 GB, free: 5.609 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.901e-05/0.1473, allocations: 8 kB / 0.5221 GB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002152/0.1475, allocations: 15.98 kB / 0.5221 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.974e-05/0.1476, allocations: 32.09 kB / 0.5222 GB, free: 5.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/0.1476, allocations: 12 kB / 0.5222 GB, free: 5.543 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000197/0.1478, allocations: 202 kB / 0.5224 GB, free: 5.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1478, allocations: 3.938 kB / 0.5224 GB, free: 5.344 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005301/0.1484, allocations: 103.8 kB / 0.5225 GB, free: 5.242 MB / 398.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.001498/0.1499, allocations: 1.093 MB / 0.5235 GB, free: 4.113 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001947/0.1518, allocations: 0.6416 MB / 0.5242 GB, free: 3.445 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.1518, allocations: 4 kB / 0.5242 GB, free: 3.441 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008936/0.1527, allocations: 449.6 kB / 0.5246 GB, free: 2.977 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003685/0.1531, allocations: 52.64 kB / 0.5246 GB, free: 2.926 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006095/0.1592, allocations: 3.287 MB / 0.5278 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.1597, allocations: 0.7961 MB / 0.5286 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001061/0.1598, allocations: 26.98 kB / 0.5286 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.1599, allocations: 107.4 kB / 0.5288 GB, free: 14.59 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1599, allocations: 0 / 0.5288 GB, free: 14.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03556/0.1955, allocations: 8.011 MB / 0.5366 GB, free: 6.664 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.26, allocations: 11.53 kB / 0.5366 GB, free: 6.652 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Pumps_valve_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Pumps_valve.fmu > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1)