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.001064/0.001064, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001121/0.001121, allocations: 192.5 kB / 16.14 MB, free: 6.711 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.288/1.288, allocations: 222.9 MB / 239.8 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2183/0.2183, allocations: 22.35 MB / 312.3 MB, free: 12.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 59.91 kB / 380.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.272, allocations: 54.94 MB / 435 MB, free: 39.53 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.0317/0.3037, allocations: 22.52 MB / 457.6 MB, free: 31.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.3049, allocations: 426.8 kB / 458 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003623/0.3053, allocations: 4.125 kB / 458 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.3055, allocations: 35.23 kB / 458 MB, free: 30.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003655/0.3059, allocations: 83.75 kB / 458.1 MB, free: 30.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003831/0.3063, allocations: 92.19 kB / 458.2 MB, free: 30.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005067/0.3068, allocations: 396.5 kB / 458.6 MB, free: 30.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004088/0.3072, allocations: 229.5 kB / 458.8 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002607/0.3075, allocations: 148.5 kB / 458.9 MB, free: 30.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002801/0.3078, allocations: 206.8 kB / 459.1 MB, free: 30.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.849e-05/0.3078, allocations: 27.06 kB / 459.2 MB, free: 30.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001783/0.308, allocations: 58.77 kB / 459.2 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.975e-05/0.3081, allocations: 79.2 kB / 459.3 MB, free: 30.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002119/0.3083, allocations: 184.2 kB / 459.5 MB, free: 30.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004179/0.3088, allocations: 425.1 kB / 459.9 MB, free: 30.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.3088, allocations: 0 / 459.9 MB, free: 30.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3088, allocations: 3.938 kB / 459.9 MB, free: 30.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.3088, allocations: 0 / 459.9 MB, free: 30.01 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.001274/0.3101, allocations: 0.681 MB / 460.6 MB, free: 29.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.3101, allocations: 12.94 kB / 460.6 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.3102, allocations: 39.94 kB / 460.6 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003354/0.3106, allocations: 304.8 kB / 460.9 MB, free: 29.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.854e-05/0.3106, allocations: 27.11 kB / 461 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.457e-05/0.3107, allocations: 25.97 kB / 461 MB, free: 29.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005535/0.3112, allocations: 286.6 kB / 461.3 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.3112, allocations: 192 / 461.3 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.158e-05/0.3113, allocations: 14.38 kB / 461.3 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.3113, allocations: 6.25 kB / 461.3 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000586/0.3119, allocations: 250.3 kB / 461.5 MB, free: 28.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00145/0.3133, allocations: 0.8105 MB / 462.3 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004913/0.3138, allocations: 235.2 kB / 462.6 MB, free: 28.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003293/0.3142, allocations: 143.2 kB / 462.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.3142, allocations: 6.641 kB / 462.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.3143, allocations: 51.08 kB / 462.8 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002212/0.3145, allocations: 38.25 kB / 462.8 MB, free: 28.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.3145, allocations: 1.438 kB / 462.8 MB, free: 28.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.003338/0.3178, allocations: 0.9658 MB / 463.8 MB, free: 27.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.413e-05/0.3179, allocations: 58.41 kB / 463.8 MB, free: 27.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002623/0.3181, allocations: 293.7 kB / 464.1 MB, free: 27.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.3182, allocations: 31.98 kB / 464.1 MB, free: 27.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.386e-05/0.3183, allocations: 181.1 kB / 464.3 MB, free: 27.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.222e-05/0.3183, allocations: 74.44 kB / 464.4 MB, free: 27.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.538e-05/0.3184, allocations: 51.83 kB / 464.4 MB, free: 27.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.716e-05/0.3185, allocations: 338.4 kB / 464.8 MB, free: 26.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002568/0.3188, allocations: 104.8 kB / 464.9 MB, free: 26.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002435/0.319, allocations: 106.1 kB / 465 MB, free: 26.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000487/0.3195, allocations: 234.3 kB / 465.2 MB, free: 26.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3195, allocations: 3.938 kB / 465.2 MB, free: 26.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.00169/0.3212, allocations: 0.4894 MB / 465.7 MB, free: 26.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.3212, allocations: 8.359 kB / 465.7 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3212, allocations: 9.188 kB / 465.7 MB, free: 26.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/0.3224, allocations: 202.2 kB / 465.9 MB, free: 26.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000581/0.323, allocations: 86.2 kB / 466 MB, free: 26.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00369/0.3267, allocations: 4.406 MB / 470.4 MB, free: 22.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000263/0.327, allocations: 15.36 kB / 470.4 MB, free: 22.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.327, allocations: 15.48 kB / 470.4 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.0001414/0.3271, allocations: 145.7 kB / 470.6 MB, free: 21.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.35e-05/0.3272, allocations: 31.05 kB / 470.6 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001248/0.3285, allocations: 0.517 MB / 471.1 MB, free: 21.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.3285, allocations: 7.938 kB / 471.1 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.3285, allocations: 0 / 471.1 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3285, allocations: 3.938 kB / 471.1 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.3301, allocations: 0.9208 MB / 472.1 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3301, allocations: 11.41 kB / 472.1 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004752/0.3306, allocations: 88.36 kB / 472.2 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006481/0.3312, allocations: 161.8 kB / 472.3 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.498e-05/0.3312, allocations: 4 kB / 472.3 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002148/0.3334, allocations: 4.089 MB / 476.4 MB, free: 16.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3334, allocations: 0 / 476.4 MB, free: 16.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.3346, allocations: 0.5397 MB / 477 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.604e-05/0.3346, allocations: 112 kB / 477.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.627e-05/0.3347, allocations: 8.062 kB / 477.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.3349, allocations: 22.42 kB / 477.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.575e-05/0.335, allocations: 33.42 kB / 477.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.3351, allocations: 8 kB / 477.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001688/0.3352, allocations: 207.4 kB / 477.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3352, allocations: 0 / 477.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005394/0.3358, allocations: 103.8 kB / 477.4 MB, free: 15.17 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.0001521/0.3359, allocations: 111.8 kB / 477.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001842/0.3378, allocations: 0.6435 MB / 478.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3378, allocations: 0 / 478.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007261/0.3385, allocations: 453.6 kB / 478.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.3389, allocations: 63.44 kB / 478.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009556/0.3399, allocations: 0.7578 MB / 479.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001987/0.3401, allocations: 0.7871 MB / 480.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001335/0.3403, allocations: 29 kB / 480.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.644e-05/0.3403, allocations: 23.44 kB / 480.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3403, allocations: 0 / 480.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of Templates: time 0.008773/0.3491, allocations: 4.697 MB / 485 MB, free: 9.754 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)