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.00109/0.00109, allocations: 91.53 kB / 16.02 MB, free: 80 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.001448/0.001448, allocations: 179.8 kB / 16.92 MB, free: 6.652 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.415/1.415, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2066/0.2066, allocations: 22.34 MB / 314.4 MB, free: 13.05 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003042/0.0003042, allocations: 8 kB / 383.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2875, allocations: 55.98 MB / 439.2 MB, free: 39.42 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.0245/0.312, allocations: 22.01 MB / 461.2 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.3132, allocations: 439 kB / 461.7 MB, free: 31.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.3133, allocations: 3.188 kB / 461.7 MB, free: 31.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.783e-05/0.3134, allocations: 29.52 kB / 461.7 MB, free: 31.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002036/0.3136, allocations: 87.88 kB / 461.8 MB, free: 30.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002591/0.3139, allocations: 88.53 kB / 461.9 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003352/0.3142, allocations: 393.3 kB / 462.3 MB, free: 30.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002894/0.3145, allocations: 220.5 kB / 462.5 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.3147, allocations: 152.8 kB / 462.6 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.3149, allocations: 194 kB / 462.8 MB, free: 30.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.701e-05/0.3149, allocations: 23.78 kB / 462.8 MB, free: 30.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.3151, allocations: 52.2 kB / 462.9 MB, free: 30.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.857e-05/0.3151, allocations: 70.38 kB / 463 MB, free: 30.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001538/0.3153, allocations: 201.2 kB / 463.2 MB, free: 30.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002694/0.3156, allocations: 316.4 kB / 463.5 MB, free: 30.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3156, allocations: 1.031 kB / 463.5 MB, free: 30.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3156, allocations: 0 / 463.5 MB, free: 30.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.3156, allocations: 4 kB / 463.5 MB, free: 30.23 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.3166, allocations: 0.6262 MB / 464.1 MB, free: 29.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.3167, allocations: 16.02 kB / 464.1 MB, free: 29.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.784e-05/0.3167, allocations: 39.31 kB / 464.1 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.3171, allocations: 307.5 kB / 464.4 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.617e-05/0.3171, allocations: 20.06 kB / 464.5 MB, free: 29.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.415e-05/0.3172, allocations: 25.06 kB / 464.5 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005428/0.3177, allocations: 292.8 kB / 464.8 MB, free: 29.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3177, allocations: 192 / 464.8 MB, free: 29.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.251e-05/0.3178, allocations: 14.69 kB / 464.8 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.3178, allocations: 5.812 kB / 464.8 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006171/0.3184, allocations: 276.5 kB / 465.1 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.3197, allocations: 0.8171 MB / 465.9 MB, free: 28.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005033/0.3202, allocations: 257.7 kB / 466.1 MB, free: 28.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003314/0.3205, allocations: 151.9 kB / 466.3 MB, free: 28.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.3206, allocations: 6.406 kB / 466.3 MB, free: 28.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/0.3206, allocations: 40.27 kB / 466.3 MB, free: 28.48 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001899/0.3208, allocations: 46.81 kB / 466.4 MB, free: 28.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.453e-06/0.3208, allocations: 0 / 466.4 MB, free: 28.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.003383/0.3242, allocations: 1.01 MB / 467.4 MB, free: 27.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.744e-05/0.3242, allocations: 54.66 kB / 467.4 MB, free: 27.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002648/0.3245, allocations: 286.2 kB / 467.7 MB, free: 27.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.3245, allocations: 30.83 kB / 467.7 MB, free: 27.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.101e-05/0.3246, allocations: 190.9 kB / 467.9 MB, free: 27.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.901e-05/0.3247, allocations: 77.86 kB / 468 MB, free: 27.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.562e-05/0.3247, allocations: 27.95 kB / 468 MB, free: 27.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.257e-05/0.3248, allocations: 339.1 kB / 468.4 MB, free: 27.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000281/0.3251, allocations: 111.1 kB / 468.5 MB, free: 27.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002672/0.3254, allocations: 119 kB / 468.6 MB, free: 27.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005645/0.3259, allocations: 250.9 kB / 468.8 MB, free: 26.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3259, allocations: 3.938 kB / 468.8 MB, free: 26.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001708/0.3277, allocations: 0.5206 MB / 469.4 MB, free: 26.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.3277, allocations: 9.875 kB / 469.4 MB, free: 26.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.3277, allocations: 0 / 469.4 MB, free: 26.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/0.3288, allocations: 197.6 kB / 469.6 MB, free: 26.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005901/0.3294, allocations: 100.1 kB / 469.7 MB, free: 26.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002906/0.3323, allocations: 4.411 MB / 474.1 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002333/0.3326, allocations: 23.44 kB / 474.1 MB, free: 21.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.3326, allocations: 7.188 kB / 474.1 MB, free: 21.89 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.0001285/0.3327, allocations: 154.7 kB / 474.3 MB, free: 21.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.221e-05/0.3328, allocations: 31.62 kB / 474.3 MB, free: 21.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00127/0.3341, allocations: 0.5235 MB / 474.8 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.3341, allocations: 4 kB / 474.8 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.3341, allocations: 0 / 474.8 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.3341, allocations: 3.938 kB / 474.8 MB, free: 21.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/0.3356, allocations: 0.9576 MB / 475.8 MB, free: 20.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3356, allocations: 15.88 kB / 475.8 MB, free: 20.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004965/0.3361, allocations: 90.17 kB / 475.9 MB, free: 20.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006184/0.3368, allocations: 155.5 kB / 476 MB, free: 20.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.3368, allocations: 8 kB / 476 MB, free: 20.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002076/0.3389, allocations: 4.091 MB / 480.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.3389, allocations: 0 / 480.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.34, allocations: 0.5734 MB / 480.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.075e-05/0.3401, allocations: 108.7 kB / 480.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.621e-05/0.3401, allocations: 11.42 kB / 480.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.3404, allocations: 18.95 kB / 480.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.446e-05/0.3404, allocations: 29.75 kB / 480.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.3405, allocations: 15.42 kB / 480.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001456/0.3406, allocations: 204.6 kB / 481.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3406, allocations: 0 / 481.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005185/0.3412, allocations: 99.84 kB / 481.2 MB, free: 14.86 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.0001357/0.3413, allocations: 111.9 kB / 481.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00169/0.343, allocations: 0.6552 MB / 481.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.343, allocations: 3.938 kB / 481.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007253/0.3437, allocations: 472.8 kB / 482.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.3441, allocations: 51.08 kB / 482.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008308/0.345, allocations: 0.8083 MB / 483.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001768/0.3452, allocations: 0.7908 MB / 484.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.6e-05/0.3452, allocations: 30.62 kB / 484.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3452, allocations: 4 kB / 484.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of Templates: time 0.01003/0.3553, allocations: 9.095 MB / 493.2 MB, free: 6.188 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)