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.001183/0.001183, allocations: 111.9 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001155/0.001156, allocations: 196.2 kB / 16.54 MB, free: 6.668 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.392/1.392, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2033/0.2033, allocations: 22.34 MB / 312.7 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 67.89 kB / 380.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2855, allocations: 54.94 MB / 435.9 MB, free: 39.75 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.02858/0.3141, allocations: 22.23 MB / 458.1 MB, free: 31.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009537/0.3151, allocations: 381.6 kB / 458.5 MB, free: 31.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.3152, allocations: 6.625 kB / 458.5 MB, free: 31.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.824e-05/0.3153, allocations: 44.27 kB / 458.5 MB, free: 31.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001937/0.3155, allocations: 102.5 kB / 458.6 MB, free: 31.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002768/0.3158, allocations: 108.5 kB / 458.7 MB, free: 31.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002945/0.3161, allocations: 413.2 kB / 459.1 MB, free: 31.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000292/0.3164, allocations: 251.8 kB / 459.4 MB, free: 30.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001473/0.3166, allocations: 162.9 kB / 459.5 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001877/0.3168, allocations: 216.7 kB / 459.7 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.801e-05/0.3168, allocations: 36.75 kB / 459.8 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.317, allocations: 70.45 kB / 459.8 MB, free: 30.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.394e-05/0.317, allocations: 79.19 kB / 459.9 MB, free: 30.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001321/0.3172, allocations: 197.9 kB / 460.1 MB, free: 30.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003166/0.3175, allocations: 433.9 kB / 460.5 MB, free: 30.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.3175, allocations: 5.375 kB / 460.5 MB, free: 30.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3175, allocations: 0 / 460.5 MB, free: 30.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.3175, allocations: 0 / 460.5 MB, free: 30.37 MB / 350.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.001001/0.3185, allocations: 0.6815 MB / 461.2 MB, free: 29.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.3186, allocations: 9.281 kB / 461.2 MB, free: 29.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.405e-05/0.3186, allocations: 62.56 kB / 461.3 MB, free: 29.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.135e-05/0.3187, allocations: 38.84 kB / 461.3 MB, free: 29.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000278/0.319, allocations: 305.9 kB / 461.6 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.319, allocations: 23.16 kB / 461.7 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.816e-05/0.319, allocations: 26.03 kB / 461.7 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004895/0.3195, allocations: 279.5 kB / 462 MB, free: 29.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.3196, allocations: 3.938 kB / 462 MB, free: 29.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.781e-05/0.3196, allocations: 10.31 kB / 462 MB, free: 29.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.3196, allocations: 6.531 kB / 462 MB, free: 29.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005536/0.3202, allocations: 255.2 kB / 462.2 MB, free: 29.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.3214, allocations: 0.8197 MB / 463 MB, free: 28.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004747/0.3218, allocations: 232.2 kB / 463.3 MB, free: 28.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000321/0.3222, allocations: 147.8 kB / 463.4 MB, free: 28.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.3222, allocations: 9.297 kB / 463.4 MB, free: 28.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.664e-05/0.3222, allocations: 45.41 kB / 463.5 MB, free: 28.54 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001946/0.3224, allocations: 43.33 kB / 463.5 MB, free: 28.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.432e-06/0.3224, allocations: 0 / 463.5 MB, free: 28.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.003325/0.3258, allocations: 0.9738 MB / 464.5 MB, free: 28.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.037e-05/0.3258, allocations: 53.5 kB / 464.5 MB, free: 27.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002404/0.326, allocations: 291.1 kB / 464.8 MB, free: 27.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.3261, allocations: 30.8 kB / 464.9 MB, free: 27.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.609e-05/0.3262, allocations: 182.9 kB / 465 MB, free: 27.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.09e-05/0.3262, allocations: 74.55 kB / 465.1 MB, free: 27.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.938e-05/0.3263, allocations: 49.78 kB / 465.2 MB, free: 27.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.111e-05/0.3263, allocations: 340.1 kB / 465.5 MB, free: 27.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002545/0.3266, allocations: 108.5 kB / 465.6 MB, free: 27.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002436/0.3269, allocations: 103.2 kB / 465.7 MB, free: 27.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005036/0.3274, allocations: 236.2 kB / 465.9 MB, free: 27.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3274, allocations: 4 kB / 465.9 MB, free: 27.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001671/0.3291, allocations: 0.492 MB / 466.4 MB, free: 26.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.3291, allocations: 7.031 kB / 466.4 MB, free: 26.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.3291, allocations: 7.969 kB / 466.4 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001119/0.3302, allocations: 202.2 kB / 466.6 MB, free: 26.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005584/0.3308, allocations: 86.22 kB / 466.7 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003018/0.3338, allocations: 4.772 MB / 471.5 MB, free: 21.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/0.3341, allocations: 15.38 kB / 471.5 MB, free: 21.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.3341, allocations: 15.28 kB / 471.5 MB, free: 21.69 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.0001261/0.3343, allocations: 149.7 kB / 471.7 MB, free: 21.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.38e-05/0.3343, allocations: 23.72 kB / 471.7 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001212/0.3355, allocations: 0.5112 MB / 472.2 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.3356, allocations: 4 kB / 472.2 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.3356, allocations: 3.938 kB / 472.2 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.3356, allocations: 4 kB / 472.2 MB, free: 21.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001477/0.3371, allocations: 0.9259 MB / 473.1 MB, free: 20.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.3371, allocations: 7.922 kB / 473.1 MB, free: 20.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004816/0.3376, allocations: 96.05 kB / 473.2 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005797/0.3381, allocations: 147.6 kB / 473.4 MB, free: 20.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.018e-05/0.3382, allocations: 8 kB / 473.4 MB, free: 20.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002031/0.3402, allocations: 4.427 MB / 477.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3402, allocations: 0 / 477.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.3413, allocations: 0.5497 MB / 478.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.324e-05/0.3414, allocations: 107.4 kB / 478.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.074e-05/0.3415, allocations: 10.3 kB / 478.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002147/0.3417, allocations: 15.89 kB / 478.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.645e-05/0.3418, allocations: 33.94 kB / 478.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.3418, allocations: 12 kB / 478.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001468/0.3419, allocations: 207.2 kB / 478.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3419, allocations: 0 / 478.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005128/0.3425, allocations: 102.8 kB / 478.8 MB, free: 14.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.001107/0.3436, allocations: 1.082 MB / 479.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001766/0.3454, allocations: 0.6597 MB / 480.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3454, allocations: 0 / 480.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007204/0.3461, allocations: 452.3 kB / 481 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.3465, allocations: 54.5 kB / 481.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005023/0.3515, allocations: 3.297 MB / 484.4 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001882/0.3517, allocations: 0.7888 MB / 485.2 MB, free: 8.477 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001115/0.3518, allocations: 29.14 kB / 485.2 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.352, allocations: 110 kB / 485.3 MB, free: 8.359 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.352, allocations: 0 / 485.3 MB, free: 8.359 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.3806, allocations: 7.892 MB / 493.2 MB, free: 3.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.85, allocations: 10.58 kB / 493.2 MB, free: 3.562 MB / 350.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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Pumps_valve_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 AES_AES_Coursework_ThermSys_component_models_Pumps_valve.fmu > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1)