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: translateModel(AES.Coursework.ThermSys_component_models.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") translateModel(AES.Coursework.ThermSys_component_models.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 100.1 kB / 15.88 MB, free: 8 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.001289/0.001289, allocations: 198.9 kB / 16.79 MB, free: 6.828 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.377/1.377, allocations: 222.9 MB / 240.5 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2133/0.2133, allocations: 22.35 MB / 313 MB, free: 12.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 67.89 kB / 380.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2437, allocations: 54.95 MB / 435.7 MB, free: 39.64 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.03079/0.2746, allocations: 22.39 MB / 458.1 MB, free: 31.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.2757, allocations: 432 kB / 458.5 MB, free: 31.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000282/0.276, allocations: 7.625 kB / 458.5 MB, free: 31.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.2761, allocations: 31.06 kB / 458.6 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003285/0.2765, allocations: 84.72 kB / 458.6 MB, free: 31.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003361/0.2768, allocations: 91.77 kB / 458.7 MB, free: 30.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003703/0.2772, allocations: 387.8 kB / 459.1 MB, free: 30.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002962/0.2775, allocations: 232.4 kB / 459.3 MB, free: 30.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.2776, allocations: 158.6 kB / 459.5 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001813/0.2778, allocations: 198.4 kB / 459.7 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.341e-05/0.2779, allocations: 26.94 kB / 459.7 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001264/0.278, allocations: 63.38 kB / 459.8 MB, free: 30.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.399e-05/0.2781, allocations: 75.03 kB / 459.8 MB, free: 30.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.2782, allocations: 184.8 kB / 460 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002584/0.2785, allocations: 318 kB / 460.3 MB, free: 30.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2785, allocations: 1.094 kB / 460.3 MB, free: 30.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.2785, allocations: 0 / 460.3 MB, free: 30.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.2785, allocations: 0 / 460.3 MB, free: 30.24 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.001092/0.2796, allocations: 0.6805 MB / 461 MB, free: 29.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.2797, allocations: 13.69 kB / 461 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.937e-05/0.2798, allocations: 39.06 kB / 461.1 MB, free: 29.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003091/0.2801, allocations: 313.4 kB / 461.4 MB, free: 29.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.2801, allocations: 19.19 kB / 461.4 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.171e-05/0.2801, allocations: 29.38 kB / 461.4 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005208/0.2807, allocations: 279.8 kB / 461.7 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.2807, allocations: 192 / 461.7 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.134e-05/0.2807, allocations: 14.97 kB / 461.7 MB, free: 29.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.2807, allocations: 6.281 kB / 461.7 MB, free: 29.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005876/0.2813, allocations: 250 kB / 462 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001246/0.2826, allocations: 0.8238 MB / 462.8 MB, free: 28.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004906/0.2831, allocations: 228.5 kB / 463 MB, free: 28.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003191/0.2834, allocations: 146 kB / 463.1 MB, free: 28.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.2835, allocations: 10.22 kB / 463.2 MB, free: 28.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.708e-05/0.2835, allocations: 41.06 kB / 463.2 MB, free: 28.46 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002013/0.2837, allocations: 38.78 kB / 463.2 MB, free: 28.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.383e-06/0.2837, allocations: 0 / 463.2 MB, free: 28.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.003437/0.2871, allocations: 0.97 MB / 464.2 MB, free: 27.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.009e-05/0.2872, allocations: 58.03 kB / 464.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/0.2874, allocations: 292.5 kB / 464.5 MB, free: 27.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.2875, allocations: 30.92 kB / 464.6 MB, free: 27.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.926e-05/0.2875, allocations: 182.6 kB / 464.8 MB, free: 27.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.255e-05/0.2876, allocations: 78.8 kB / 464.8 MB, free: 27.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.302e-05/0.2877, allocations: 52.34 kB / 464.9 MB, free: 27.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.701e-05/0.2877, allocations: 338.6 kB / 465.2 MB, free: 27.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002585/0.288, allocations: 101.3 kB / 465.3 MB, free: 27.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002435/0.2883, allocations: 108.4 kB / 465.4 MB, free: 27.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004891/0.2888, allocations: 231.4 kB / 465.6 MB, free: 26.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2888, allocations: 3.938 kB / 465.6 MB, free: 26.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001677/0.2904, allocations: 0.496 MB / 466.1 MB, free: 26.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.2905, allocations: 9.125 kB / 466.2 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.2905, allocations: 0 / 466.2 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.2917, allocations: 205.5 kB / 466.4 MB, free: 26.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005878/0.2923, allocations: 89.44 kB / 466.4 MB, free: 26.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003062/0.2953, allocations: 4.409 MB / 470.9 MB, free: 22.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002436/0.2956, allocations: 15.38 kB / 470.9 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.2956, allocations: 15.47 kB / 470.9 MB, free: 22.29 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.0001257/0.2958, allocations: 145.8 kB / 471 MB, free: 22.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.411e-05/0.2958, allocations: 23.72 kB / 471 MB, free: 22.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001254/0.2971, allocations: 0.5105 MB / 471.6 MB, free: 21.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.2971, allocations: 7.938 kB / 471.6 MB, free: 21.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2971, allocations: 4 kB / 471.6 MB, free: 21.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.2971, allocations: 3.938 kB / 471.6 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001515/0.2986, allocations: 0.9314 MB / 472.5 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.2987, allocations: 3.938 kB / 472.5 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004824/0.2991, allocations: 96.56 kB / 472.6 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006341/0.2998, allocations: 155.5 kB / 472.8 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.2998, allocations: 8 kB / 472.8 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002048/0.3019, allocations: 4.089 MB / 476.9 MB, free: 16.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3019, allocations: 0 / 476.9 MB, free: 16.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.303, allocations: 0.5433 MB / 477.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.066e-05/0.303, allocations: 103.5 kB / 477.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.862e-05/0.3031, allocations: 11.94 kB / 477.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002137/0.3033, allocations: 25.62 kB / 477.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.759e-05/0.3034, allocations: 31.48 kB / 477.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.3034, allocations: 4 kB / 477.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001406/0.3036, allocations: 210.8 kB / 477.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3036, allocations: 0 / 477.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005024/0.3041, allocations: 99.75 kB / 477.9 MB, free: 15.35 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.0001245/0.3042, allocations: 107.7 kB / 478 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001668/0.3059, allocations: 0.6327 MB / 478.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3059, allocations: 4 kB / 478.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007047/0.3066, allocations: 460.1 kB / 479.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003988/0.307, allocations: 61.91 kB / 479.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009002/0.3079, allocations: 0.7805 MB / 479.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001635/0.3081, allocations: 0.7919 MB / 480.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.718e-05/0.3082, allocations: 27.44 kB / 480.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3082, allocations: 3.938 kB / 480.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of Templates: time 0.009379/0.3176, allocations: 9.128 MB / 489.9 MB, free: 7.023 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.makefile (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 & ./AES_AES.Coursework.ThermSys_component_models.Pumps_valve -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1)