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.009375/0.009376, allocations: 102.4 kB / 15.73 MB, free: 6.008 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.001759/0.001759, allocations: 198.5 kB / 16.68 MB, free: 5.93 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09258/0.09258, allocations: 22.33 MB / 312.9 MB, free: 8.859 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 59.91 kB / 436.5 MB, free: 12.24 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.107, allocations: 54.97 MB / 491.5 MB, free: 5.23 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.4188/0.5258, allocations: 22.24 MB / 0.5017 GB, free: 5.234 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.5271, allocations: 389.6 kB / 0.5021 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.5273, allocations: 2.656 kB / 0.5021 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.5274, allocations: 46.06 kB / 0.5021 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002576/0.5277, allocations: 109.7 kB / 0.5022 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003766/0.528, allocations: 107.6 kB / 0.5023 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004018/0.5285, allocations: 413.9 kB / 0.5027 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003528/0.5288, allocations: 252.8 kB / 0.503 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.529, allocations: 169.1 kB / 0.5031 GB, free: 5.125 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.5292, allocations: 212.5 kB / 0.5033 GB, free: 5.082 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.194e-05/0.5293, allocations: 36.62 kB / 0.5034 GB, free: 5.082 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.5294, allocations: 66.59 kB / 0.5034 GB, free: 5.082 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.534e-05/0.5295, allocations: 90.62 kB / 0.5035 GB, free: 5.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001604/0.5296, allocations: 190.2 kB / 0.5037 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004814/0.5301, allocations: 445.4 kB / 0.5041 GB, free: 4.938 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.5301, allocations: 0 / 0.5041 GB, free: 4.938 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5301, allocations: 2.656 kB / 0.5041 GB, free: 4.938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.5302, allocations: 0 / 0.5041 GB, free: 4.938 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.001086/0.5312, allocations: 0.6874 MB / 0.5048 GB, free: 4.449 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.5313, allocations: 7.562 kB / 0.5048 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.68e-05/0.5314, allocations: 64.38 kB / 0.5049 GB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.953e-05/0.5315, allocations: 41.78 kB / 0.5049 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003719/0.5318, allocations: 302.6 kB / 0.5052 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.5319, allocations: 18.94 kB / 0.5052 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.656e-05/0.5319, allocations: 25.97 kB / 0.5052 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005488/0.5325, allocations: 286.3 kB / 0.5055 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.5325, allocations: 3.938 kB / 0.5055 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.962e-05/0.5325, allocations: 13.53 kB / 0.5055 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.5325, allocations: 5.812 kB / 0.5055 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005505/0.5331, allocations: 247.6 kB / 0.5058 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001307/0.5344, allocations: 0.8098 MB / 0.5066 GB, free: 3.777 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005188/0.5349, allocations: 234.8 kB / 0.5068 GB, free: 3.754 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003564/0.5353, allocations: 144.2 kB / 0.5069 GB, free: 3.746 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.422e-05/0.5354, allocations: 16.19 kB / 0.5069 GB, free: 3.738 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.5354, allocations: 34.88 kB / 0.507 GB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002091/0.5356, allocations: 39.59 kB / 0.507 GB, free: 3.688 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 3.136e-06/0.5356, allocations: 2.656 kB / 0.507 GB, free: 3.688 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.003483/0.5391, allocations: 0.9641 MB / 0.5079 GB, free: 3.328 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.669e-05/0.5391, allocations: 62.45 kB / 0.508 GB, free: 3.262 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002892/0.5394, allocations: 283.8 kB / 0.5083 GB, free: 3.156 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.5395, allocations: 30.45 kB / 0.5083 GB, free: 3.125 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.628e-05/0.5396, allocations: 192.2 kB / 0.5085 GB, free: 3.012 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.821e-05/0.5396, allocations: 72.77 kB / 0.5086 GB, free: 2.965 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.486e-05/0.5397, allocations: 51.92 kB / 0.5086 GB, free: 2.949 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.243e-05/0.5398, allocations: 337.8 kB / 0.5089 GB, free: 2.637 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002712/0.5401, allocations: 104.8 kB / 0.509 GB, free: 2.637 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.5403, allocations: 104.1 kB / 0.5091 GB, free: 2.637 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005118/0.5409, allocations: 235.4 kB / 0.5094 GB, free: 2.625 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.5409, allocations: 1.375 kB / 0.5094 GB, free: 2.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001772/0.5426, allocations: 0.4947 MB / 0.5098 GB, free: 2.531 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.5427, allocations: 6.609 kB / 0.5098 GB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.5427, allocations: 0 / 0.5098 GB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.5439, allocations: 202.2 kB / 0.51 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005691/0.5445, allocations: 94.44 kB / 0.5101 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0038/0.5483, allocations: 4.761 MB / 0.5148 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002745/0.5486, allocations: 17.11 kB / 0.5148 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.634e-05/0.5486, allocations: 9.688 kB / 0.5148 GB, free: 14.33 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.0001924/0.5488, allocations: 148.1 kB / 0.5149 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.789e-05/0.5489, allocations: 24.09 kB / 0.515 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001427/0.5503, allocations: 0.5176 MB / 0.5155 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.5503, allocations: 8.062 kB / 0.5155 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.5504, allocations: 5.312 kB / 0.5155 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.5504, allocations: 1.875 kB / 0.5155 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.5522, allocations: 0.9246 MB / 0.5164 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.5522, allocations: 0 / 0.5164 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005074/0.5527, allocations: 89.5 kB / 0.5165 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006928/0.5534, allocations: 155.4 kB / 0.5166 GB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/0.5535, allocations: 7.359 kB / 0.5166 GB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003532/0.557, allocations: 4.43 MB / 0.521 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.557, allocations: 2.094 kB / 0.521 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001302/0.5583, allocations: 0.5498 MB / 0.5215 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.5585, allocations: 112 kB / 0.5216 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.5585, allocations: 6.656 kB / 0.5216 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.5587, allocations: 20.5 kB / 0.5216 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.5588, allocations: 29.64 kB / 0.5217 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.432e-05/0.5589, allocations: 14.02 kB / 0.5217 GB, free: 9.301 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002527/0.5591, allocations: 204.3 kB / 0.5219 GB, free: 9.219 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5591, allocations: 0 / 0.5219 GB, free: 9.219 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006064/0.5598, allocations: 99.38 kB / 0.522 GB, free: 9.211 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.00157/0.5613, allocations: 1.08 MB / 0.523 GB, free: 8.496 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002167/0.5635, allocations: 0.6493 MB / 0.5236 GB, free: 8.258 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.5635, allocations: 0 / 0.5236 GB, free: 8.258 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.5646, allocations: 461.3 kB / 0.5241 GB, free: 8.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004587/0.565, allocations: 47.75 kB / 0.5241 GB, free: 8.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007606/0.5726, allocations: 3.279 MB / 0.5273 GB, free: 6.562 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005073/0.5732, allocations: 0.789 MB / 0.5281 GB, free: 5.863 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.5734, allocations: 27.94 kB / 0.5281 GB, free: 5.859 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001861/0.5736, allocations: 109.3 kB / 0.5282 GB, free: 5.852 MB / 398.1 MB Notification: Performance of SimCode: time 1.102e-06/0.5736, allocations: 1.281 kB / 0.5282 GB, free: 5.852 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03725/0.6108, allocations: 8.021 MB / 0.5361 GB, free: 2.922 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.85, allocations: 8.844 kB / 0.5361 GB, free: 2.914 MB / 398.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)