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.0008937/0.0008937, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.000931/0.0009311, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2449/0.2449, allocations: 22.35 MB / 313.4 MB, free: 13.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003331/0.0003334, allocations: 15.98 kB / 382 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3651/0.3655, allocations: 55.98 MB / 438 MB, free: 39.28 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_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/flowOnePort_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.002734/0.3683, allocations: 2.519 MB / 440.5 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000777/0.3691, allocations: 426.3 kB / 441 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.3692, allocations: 2.5 kB / 441 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.098e-05/0.3693, allocations: 34.66 kB / 441 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002333/0.3695, allocations: 111.3 kB / 441.1 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002804/0.3698, allocations: 74.48 kB / 441.2 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003147/0.3701, allocations: 381.7 kB / 441.6 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003087/0.3705, allocations: 213.7 kB / 441.8 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.3706, allocations: 137.4 kB / 441.9 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001969/0.3708, allocations: 186.3 kB / 442.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.91e-05/0.3709, allocations: 23.38 kB / 442.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001191/0.371, allocations: 62.88 kB / 442.2 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.433e-05/0.371, allocations: 71.86 kB / 442.2 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.178e-05/0.3711, allocations: 84.7 kB / 442.3 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.3714, allocations: 312.6 kB / 442.6 MB, free: 36.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3714, allocations: 0 / 442.6 MB, free: 36.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3714, allocations: 0 / 442.6 MB, free: 36.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.3714, allocations: 4 kB / 442.6 MB, free: 36.39 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.0009548/0.3724, allocations: 0.6315 MB / 443.3 MB, free: 35.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.3724, allocations: 11.69 kB / 443.3 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.197e-05/0.3725, allocations: 61.47 kB / 443.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.438e-05/0.3726, allocations: 36.72 kB / 443.4 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003318/0.3729, allocations: 296.6 kB / 443.7 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.3729, allocations: 20.41 kB / 443.7 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.908e-05/0.373, allocations: 29.09 kB / 443.7 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005073/0.3735, allocations: 290.7 kB / 444 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3735, allocations: 0 / 444 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.809e-05/0.3735, allocations: 11.09 kB / 444 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.3736, allocations: 9.969 kB / 444 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005436/0.3741, allocations: 275.8 kB / 444.3 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.3754, allocations: 0.8203 MB / 445.1 MB, free: 34.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004697/0.3758, allocations: 247.8 kB / 445.3 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003085/0.3762, allocations: 156.3 kB / 445.5 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.3762, allocations: 6.844 kB / 445.5 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.819e-05/0.3762, allocations: 30.56 kB / 445.5 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001946/0.3764, allocations: 47.52 kB / 445.6 MB, free: 34.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.382e-06/0.3764, allocations: 0 / 445.6 MB, free: 34.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.003087/0.3795, allocations: 1.02 MB / 446.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.3796, allocations: 57.98 kB / 446.6 MB, free: 34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002333/0.3798, allocations: 278.8 kB / 446.9 MB, free: 33.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.3798, allocations: 32.77 kB / 447 MB, free: 33.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.012e-05/0.3799, allocations: 189.3 kB / 447.1 MB, free: 33.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.661e-05/0.38, allocations: 80.58 kB / 447.2 MB, free: 33.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.429e-05/0.38, allocations: 4 kB / 447.2 MB, free: 33.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.097e-05/0.3801, allocations: 338.8 kB / 447.6 MB, free: 33.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002317/0.3803, allocations: 111 kB / 447.7 MB, free: 33.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002198/0.3806, allocations: 121.2 kB / 447.8 MB, free: 33.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002678/0.3808, allocations: 116.5 kB / 447.9 MB, free: 33.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3808, allocations: 0 / 447.9 MB, free: 33.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001511/0.3824, allocations: 0.5115 MB / 448.4 MB, free: 32.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.3824, allocations: 9.422 kB / 448.4 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.3824, allocations: 7.141 kB / 448.4 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.3834, allocations: 200.5 kB / 448.6 MB, free: 32.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005208/0.384, allocations: 97.78 kB / 448.7 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003052/0.387, allocations: 4.409 MB / 453.1 MB, free: 28.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.3873, allocations: 21.34 kB / 453.1 MB, free: 28.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.3873, allocations: 13.78 kB / 453.2 MB, free: 28.73 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001496/0.3875, allocations: 142.4 kB / 453.3 MB, free: 28.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.819e-05/0.3875, allocations: 28.75 kB / 453.3 MB, free: 28.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001208/0.3888, allocations: 0.5359 MB / 453.9 MB, free: 28.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.3888, allocations: 6.625 kB / 453.9 MB, free: 28.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3888, allocations: 3.312 kB / 453.9 MB, free: 28.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3888, allocations: 4 kB / 453.9 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/0.3903, allocations: 0.9473 MB / 454.8 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3903, allocations: 3.188 kB / 454.8 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000455/0.3908, allocations: 95.72 kB / 454.9 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005904/0.3914, allocations: 154.8 kB / 455.1 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.3914, allocations: 6.625 kB / 455.1 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002141/0.3936, allocations: 4.096 MB / 459.2 MB, free: 23.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3936, allocations: 0 / 459.2 MB, free: 23.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.3947, allocations: 0.5668 MB / 459.7 MB, free: 23.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.826e-05/0.3947, allocations: 109.1 kB / 459.8 MB, free: 23.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/0.3948, allocations: 6.625 kB / 459.8 MB, free: 23.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.395, allocations: 23.89 kB / 459.9 MB, free: 23.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.509e-05/0.3951, allocations: 30.42 kB / 459.9 MB, free: 23.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.3951, allocations: 15.09 kB / 459.9 MB, free: 23.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001597/0.3953, allocations: 205.1 kB / 460.1 MB, free: 23.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3953, allocations: 2.625 kB / 460.1 MB, free: 23.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005569/0.3959, allocations: 102.9 kB / 460.2 MB, free: 23.14 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001209/0.3971, allocations: 1.106 MB / 461.3 MB, free: 22.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001688/0.3988, allocations: 0.6734 MB / 462 MB, free: 21.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3988, allocations: 4 kB / 462 MB, free: 21.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007415/0.3995, allocations: 457 kB / 462.4 MB, free: 21.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004562/0.4, allocations: 48.58 kB / 462.5 MB, free: 21.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00411/0.4041, allocations: 2.059 MB / 464.6 MB, free: 20.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.4045, allocations: 0.7883 MB / 465.3 MB, free: 19.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001727/0.4047, allocations: 28.92 kB / 465.4 MB, free: 19.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001543/0.4048, allocations: 111.1 kB / 465.5 MB, free: 19.82 MB / 350.1 MB Notification: Performance of SimCode: time 1.523e-06/0.4048, allocations: 0 / 465.5 MB, free: 19.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02548/0.4303, allocations: 7.349 MB / 472.8 MB, free: 19.34 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000178/0.4305, allocations: 209.7 kB / 473 MB, free: 19.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.98/2.41, allocations: 0 / 473 MB, free: 19.11 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 & /home/hudson/saved_omc/OMSimulator/install/linux/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) Environment - environmentSimulation: