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.001113/0.001113, allocations: 108 kB / 15.61 MB, free: 152 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.001124/0.001124, allocations: 197 kB / 16.53 MB, free: 6.664 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.32/1.32, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1932/0.1932, allocations: 22.35 MB / 312.7 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 63.89 kB / 380.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2717, allocations: 54.94 MB / 435.9 MB, free: 39.61 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.02684/0.2986, allocations: 22.26 MB / 458.1 MB, free: 31.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009223/0.2996, allocations: 386 kB / 458.5 MB, free: 31.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.2997, allocations: 7.25 kB / 458.5 MB, free: 31.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.629e-05/0.2998, allocations: 43.16 kB / 458.6 MB, free: 31.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001815/0.3, allocations: 104.5 kB / 458.7 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002741/0.3002, allocations: 106.4 kB / 458.8 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002842/0.3005, allocations: 414.2 kB / 459.2 MB, free: 30.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002833/0.3008, allocations: 250.3 kB / 459.4 MB, free: 30.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001301/0.301, allocations: 162 kB / 459.6 MB, free: 30.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.3012, allocations: 212.2 kB / 459.8 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.73e-05/0.3012, allocations: 37.22 kB / 459.8 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001228/0.3013, allocations: 64.45 kB / 459.9 MB, free: 30.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.215e-05/0.3014, allocations: 91.86 kB / 460 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.3015, allocations: 192.5 kB / 460.2 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003034/0.3018, allocations: 440.7 kB / 460.6 MB, free: 30.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3019, allocations: 0 / 460.6 MB, free: 30.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3019, allocations: 0 / 460.6 MB, free: 30.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.3019, allocations: 1.031 kB / 460.6 MB, free: 30.21 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.0009676/0.3029, allocations: 0.6772 MB / 461.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.3029, allocations: 14.44 kB / 461.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.618e-05/0.303, allocations: 62.09 kB / 461.3 MB, free: 29.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.78e-05/0.303, allocations: 38.59 kB / 461.4 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.3033, allocations: 317.1 kB / 461.7 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.3033, allocations: 19.44 kB / 461.7 MB, free: 29.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.704e-05/0.3034, allocations: 25.38 kB / 461.7 MB, free: 29.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004761/0.3039, allocations: 277.8 kB / 462 MB, free: 29.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.3039, allocations: 3.938 kB / 462 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.736e-05/0.3039, allocations: 14.41 kB / 462 MB, free: 29.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.3039, allocations: 6.688 kB / 462 MB, free: 29.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005435/0.3045, allocations: 250 kB / 462.3 MB, free: 29.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.3056, allocations: 0.8152 MB / 463.1 MB, free: 28.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004555/0.3061, allocations: 240.2 kB / 463.3 MB, free: 28.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003057/0.3064, allocations: 141.6 kB / 463.5 MB, free: 28.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.3064, allocations: 7.062 kB / 463.5 MB, free: 28.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.997e-05/0.3065, allocations: 40.02 kB / 463.5 MB, free: 28.39 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001942/0.3067, allocations: 51.62 kB / 463.6 MB, free: 28.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.392e-06/0.3067, allocations: 0 / 463.6 MB, free: 28.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.00321/0.3099, allocations: 0.9702 MB / 464.5 MB, free: 27.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.89e-05/0.3099, allocations: 54.41 kB / 464.6 MB, free: 27.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002258/0.3101, allocations: 289.1 kB / 464.9 MB, free: 27.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.3102, allocations: 30.89 kB / 464.9 MB, free: 27.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.438e-05/0.3102, allocations: 181.1 kB / 465.1 MB, free: 27.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.969e-05/0.3103, allocations: 82.42 kB / 465.2 MB, free: 27.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.68e-05/0.3104, allocations: 50.28 kB / 465.2 MB, free: 27.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.984e-05/0.3104, allocations: 336.5 kB / 465.5 MB, free: 27.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.3107, allocations: 107.7 kB / 465.6 MB, free: 26.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002491/0.3109, allocations: 98.89 kB / 465.7 MB, free: 26.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004921/0.3114, allocations: 244.5 kB / 466 MB, free: 26.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3115, allocations: 0 / 466 MB, free: 26.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001599/0.3131, allocations: 498.7 kB / 466.5 MB, free: 26.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.3131, allocations: 5.406 kB / 466.5 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.3131, allocations: 0 / 466.5 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.3142, allocations: 204.4 kB / 466.7 MB, free: 26.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005607/0.3147, allocations: 91.89 kB / 466.8 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002864/0.3176, allocations: 4.773 MB / 471.5 MB, free: 21.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001993/0.3178, allocations: 15.27 kB / 471.5 MB, free: 21.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.3179, allocations: 7.328 kB / 471.5 MB, free: 21.55 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.0001013/0.318, allocations: 145.1 kB / 471.7 MB, free: 21.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.111e-05/0.318, allocations: 31.78 kB / 471.7 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001182/0.3192, allocations: 0.5115 MB / 472.2 MB, free: 20.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.3192, allocations: 7.938 kB / 472.2 MB, free: 20.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.3192, allocations: 0 / 472.2 MB, free: 20.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3192, allocations: 3.375 kB / 472.2 MB, free: 20.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001387/0.3206, allocations: 0.9436 MB / 473.2 MB, free: 20.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.3206, allocations: 0 / 473.2 MB, free: 20.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000467/0.3211, allocations: 87.72 kB / 473.3 MB, free: 20 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005645/0.3217, allocations: 151.5 kB / 473.4 MB, free: 19.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.3217, allocations: 8 kB / 473.4 MB, free: 19.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001937/0.3237, allocations: 4.428 MB / 477.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3237, allocations: 4.031 kB / 477.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.3247, allocations: 0.5457 MB / 478.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.319e-05/0.3248, allocations: 112.1 kB / 478.5 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.948e-05/0.3248, allocations: 8 kB / 478.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002105/0.325, allocations: 19.27 kB / 478.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.448e-05/0.3251, allocations: 33.05 kB / 478.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.3251, allocations: 11.98 kB / 478.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001272/0.3253, allocations: 205.6 kB / 478.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3253, allocations: 0 / 478.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004704/0.3257, allocations: 103 kB / 478.9 MB, free: 14.26 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.001092/0.3268, allocations: 1.077 MB / 480 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001693/0.3286, allocations: 0.6701 MB / 480.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3286, allocations: 0 / 480.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006964/0.3293, allocations: 446.2 kB / 481.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.3296, allocations: 56.95 kB / 481.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004797/0.3344, allocations: 3.294 MB / 484.4 MB, free: 9.109 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000141/0.3346, allocations: 0.7878 MB / 485.2 MB, free: 8.336 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.492e-05/0.3347, allocations: 29.09 kB / 485.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.3348, allocations: 111.8 kB / 485.3 MB, free: 8.219 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3348, allocations: 3.938 kB / 485.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.557/3.892, allocations: 7.874 MB / 493.2 MB, free: 3.512 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.35/19.24, allocations: 14.67 kB / 493.2 MB, free: 3.5 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/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)