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.001171/0.001171, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001156/0.001156, allocations: 195 kB / 16.14 MB, free: 6.648 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.184/1.184, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1748/0.1748, allocations: 22.34 MB / 312.3 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 55.91 kB / 380.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.203/0.2042, allocations: 54.94 MB / 435.1 MB, free: 39.5 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.02319/0.2274, allocations: 22.4 MB / 457.5 MB, free: 31.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008353/0.2283, allocations: 437 kB / 458 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.2284, allocations: 4.156 kB / 458 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.12e-05/0.2285, allocations: 35.42 kB / 458 MB, free: 30.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.2287, allocations: 83.05 kB / 458.1 MB, free: 30.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002247/0.2289, allocations: 85.92 kB / 458.2 MB, free: 30.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002652/0.2292, allocations: 403.1 kB / 458.6 MB, free: 30.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002316/0.2294, allocations: 228 kB / 458.8 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.2295, allocations: 150.7 kB / 458.9 MB, free: 30.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001609/0.2297, allocations: 206.9 kB / 459.1 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.985e-05/0.2298, allocations: 27.22 kB / 459.2 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.2299, allocations: 55.28 kB / 459.2 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.961e-05/0.2299, allocations: 78.7 kB / 459.3 MB, free: 30.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.2301, allocations: 183.5 kB / 459.5 MB, free: 30.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002754/0.2303, allocations: 425.5 kB / 459.9 MB, free: 30.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.2303, allocations: 0 / 459.9 MB, free: 30.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2304, allocations: 0.9375 kB / 459.9 MB, free: 30.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.2304, allocations: 3.938 kB / 459.9 MB, free: 30 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.0009592/0.2313, allocations: 0.6769 MB / 460.6 MB, free: 29.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.2314, allocations: 14.19 kB / 460.6 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.214e-05/0.2314, allocations: 66.2 kB / 460.7 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.255e-05/0.2315, allocations: 38.84 kB / 460.7 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002571/0.2318, allocations: 298.2 kB / 461 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.2318, allocations: 23.69 kB / 461 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.664e-05/0.2318, allocations: 24.38 kB / 461 MB, free: 29.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004907/0.2323, allocations: 280 kB / 461.3 MB, free: 28.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.2323, allocations: 3.938 kB / 461.3 MB, free: 28.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.627e-05/0.2324, allocations: 11.38 kB / 461.3 MB, free: 28.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.2324, allocations: 10.31 kB / 461.3 MB, free: 28.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005377/0.2329, allocations: 253.4 kB / 461.6 MB, free: 28.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.2341, allocations: 0.8202 MB / 462.4 MB, free: 28.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004412/0.2345, allocations: 232.4 kB / 462.6 MB, free: 28.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002991/0.2348, allocations: 150.7 kB / 462.8 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.2348, allocations: 7 kB / 462.8 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.26e-05/0.2349, allocations: 36.22 kB / 462.8 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000188/0.2351, allocations: 52.81 kB / 462.9 MB, free: 28.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.342e-06/0.2351, allocations: 1.094 kB / 462.9 MB, free: 28.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.003202/0.2383, allocations: 0.9697 MB / 463.8 MB, free: 27.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.687e-05/0.2383, allocations: 57.69 kB / 463.9 MB, free: 27.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.2385, allocations: 287.6 kB / 464.2 MB, free: 27.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.2385, allocations: 30.92 kB / 464.2 MB, free: 27.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.712e-05/0.2386, allocations: 182.2 kB / 464.4 MB, free: 27.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.012e-05/0.2387, allocations: 82.72 kB / 464.5 MB, free: 27.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.639e-05/0.2387, allocations: 51.66 kB / 464.5 MB, free: 27.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.44e-05/0.2388, allocations: 339.5 kB / 464.8 MB, free: 26.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002408/0.239, allocations: 96.38 kB / 464.9 MB, free: 26.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002279/0.2393, allocations: 109.7 kB / 465 MB, free: 26.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004553/0.2397, allocations: 235.4 kB / 465.3 MB, free: 26.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2398, allocations: 0 / 465.3 MB, free: 26.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001627/0.2414, allocations: 0.4928 MB / 465.8 MB, free: 26.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.2414, allocations: 4.375 kB / 465.8 MB, free: 26.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.2414, allocations: 1.312 kB / 465.8 MB, free: 26.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/0.2425, allocations: 200.8 kB / 466 MB, free: 26.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005645/0.2431, allocations: 93.62 kB / 466.1 MB, free: 26.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002775/0.2459, allocations: 4.409 MB / 470.5 MB, free: 22.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000205/0.2461, allocations: 19.3 kB / 470.5 MB, free: 22.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.948e-05/0.2461, allocations: 7.234 kB / 470.5 MB, free: 22.11 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.2462, allocations: 153.7 kB / 470.6 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.101e-05/0.2463, allocations: 27.72 kB / 470.7 MB, free: 21.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001171/0.2475, allocations: 0.5047 MB / 471.2 MB, free: 21.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.2475, allocations: 4 kB / 471.2 MB, free: 21.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.2475, allocations: 0 / 471.2 MB, free: 21.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.2475, allocations: 10.7 kB / 471.2 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/0.2489, allocations: 0.9326 MB / 472.1 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2489, allocations: 64 / 472.1 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004481/0.2494, allocations: 87.64 kB / 472.2 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005874/0.25, allocations: 160.8 kB / 472.4 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.25, allocations: 7.375 kB / 472.4 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001809/0.2518, allocations: 4.083 MB / 476.5 MB, free: 16.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.2518, allocations: 4 kB / 476.5 MB, free: 16.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.2529, allocations: 0.5526 MB / 477 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.936e-05/0.2529, allocations: 107.7 kB / 477.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.789e-05/0.253, allocations: 4 kB / 477.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.2532, allocations: 14.95 kB / 477.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.666e-05/0.2533, allocations: 35.47 kB / 477.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.2533, allocations: 12.14 kB / 477.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001247/0.2534, allocations: 215.9 kB / 477.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2534, allocations: 0 / 477.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004451/0.2539, allocations: 103.8 kB / 477.5 MB, free: 15.16 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.001078/0.2549, allocations: 1.081 MB / 478.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001647/0.2566, allocations: 0.6503 MB / 479.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2566, allocations: 0 / 479.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006754/0.2573, allocations: 452.1 kB / 479.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.2577, allocations: 52 kB / 479.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004841/0.2625, allocations: 3.393 MB / 483.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001334/0.2626, allocations: 0.8033 MB / 483.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.713e-05/0.2628, allocations: 29.09 kB / 483.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.2629, allocations: 104.9 kB / 484 MB, free: 9.012 MB / 350.1 MB Notification: Performance of SimCode: time 1.9e-07/0.2629, allocations: 0 / 484 MB, free: 9.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01683/0.2797, allocations: 7.385 MB / 491.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001478/0.2799, allocations: 226.1 kB / 491.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.732/2.012, allocations: 0 / 491.6 MB, free: 4.398 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)