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.001073/0.001073, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.007676/0.007676, allocations: 172 kB / 16.26 MB, free: 6.613 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.307/1.307, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.193/0.193, allocations: 22.34 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002942/0.0002939, allocations: 8 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.2371, allocations: 55.97 MB / 438.7 MB, free: 39.29 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.02222/0.2593, allocations: 22.01 MB / 460.7 MB, free: 31.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000986/0.2603, allocations: 435.8 kB / 461.1 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.2605, allocations: 3.312 kB / 461.1 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.505e-05/0.2605, allocations: 28.42 kB / 461.1 MB, free: 30.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000196/0.2607, allocations: 88.08 kB / 461.2 MB, free: 30.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002524/0.261, allocations: 92.17 kB / 461.3 MB, free: 30.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003056/0.2613, allocations: 400.7 kB / 461.7 MB, free: 30.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002754/0.2616, allocations: 210.4 kB / 461.9 MB, free: 30.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.2618, allocations: 148.5 kB / 462.1 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001943/0.262, allocations: 201.9 kB / 462.3 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.927e-05/0.262, allocations: 23.78 kB / 462.3 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001169/0.2621, allocations: 52.39 kB / 462.3 MB, free: 30.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.983e-05/0.2622, allocations: 75.08 kB / 462.4 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001364/0.2623, allocations: 197.6 kB / 462.6 MB, free: 30.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.2627, allocations: 418.2 kB / 463 MB, free: 30.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.2627, allocations: 1.25 kB / 463 MB, free: 30.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2627, allocations: 0 / 463 MB, free: 30.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.2627, allocations: 0 / 463 MB, free: 30.04 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.0009681/0.2637, allocations: 0.6349 MB / 463.6 MB, free: 29.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.2637, allocations: 14.12 kB / 463.7 MB, free: 29.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.75e-05/0.2638, allocations: 61.77 kB / 463.7 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.624e-05/0.2638, allocations: 39.03 kB / 463.8 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002975/0.2641, allocations: 302.2 kB / 464 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.2642, allocations: 20.28 kB / 464.1 MB, free: 29.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.682e-05/0.2642, allocations: 24.88 kB / 464.1 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005611/0.2648, allocations: 293 kB / 464.4 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.2648, allocations: 7.875 kB / 464.4 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.954e-05/0.2649, allocations: 11.25 kB / 464.4 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.2649, allocations: 10.05 kB / 464.4 MB, free: 29.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006237/0.2655, allocations: 272.2 kB / 464.7 MB, free: 28.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.2667, allocations: 0.8282 MB / 465.5 MB, free: 28.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005304/0.2673, allocations: 243.8 kB / 465.7 MB, free: 28.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003545/0.2677, allocations: 155.3 kB / 465.9 MB, free: 28.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.2677, allocations: 6.281 kB / 465.9 MB, free: 28.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.462e-05/0.2677, allocations: 36.94 kB / 465.9 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002021/0.2679, allocations: 46.8 kB / 466 MB, free: 28.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.503e-06/0.2679, allocations: 4 kB / 466 MB, free: 28.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.003576/0.2715, allocations: 1.01 MB / 467 MB, free: 27.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.062e-05/0.2715, allocations: 57.91 kB / 467 MB, free: 27.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002468/0.2718, allocations: 285.5 kB / 467.3 MB, free: 27.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.2718, allocations: 31.02 kB / 467.4 MB, free: 27.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.616e-05/0.2719, allocations: 182.9 kB / 467.5 MB, free: 27.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.524e-05/0.272, allocations: 79.97 kB / 467.6 MB, free: 27.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.154e-05/0.272, allocations: 22.67 kB / 467.6 MB, free: 27.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.097e-05/0.2721, allocations: 343.4 kB / 468 MB, free: 26.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002918/0.2724, allocations: 111.2 kB / 468.1 MB, free: 26.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002749/0.2726, allocations: 117.9 kB / 468.2 MB, free: 26.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005669/0.2732, allocations: 258.6 kB / 468.4 MB, free: 26.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2732, allocations: 1.031 kB / 468.5 MB, free: 26.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001772/0.275, allocations: 0.5251 MB / 469 MB, free: 26.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.2751, allocations: 4 kB / 469 MB, free: 26.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.2751, allocations: 0 / 469 MB, free: 26.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/0.2762, allocations: 201.7 kB / 469.2 MB, free: 26.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006255/0.2769, allocations: 96.89 kB / 469.3 MB, free: 26.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002973/0.2799, allocations: 4.411 MB / 473.7 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.2801, allocations: 22.78 kB / 473.7 MB, free: 21.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.191e-05/0.2801, allocations: 11.19 kB / 473.7 MB, free: 21.62 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.0001193/0.2803, allocations: 157.6 kB / 473.9 MB, free: 21.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.365e-05/0.2803, allocations: 27.62 kB / 473.9 MB, free: 21.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001337/0.2817, allocations: 0.5242 MB / 474.4 MB, free: 20.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2817, allocations: 4 kB / 474.4 MB, free: 20.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.2817, allocations: 4 kB / 474.4 MB, free: 20.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.2817, allocations: 7.312 kB / 474.4 MB, free: 20.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001608/0.2833, allocations: 0.9609 MB / 475.4 MB, free: 20.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.2833, allocations: 4 kB / 475.4 MB, free: 20.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005384/0.2839, allocations: 91.88 kB / 475.5 MB, free: 20.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006677/0.2846, allocations: 155.4 kB / 475.6 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.2846, allocations: 8 kB / 475.6 MB, free: 19.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002058/0.2867, allocations: 4.094 MB / 479.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2867, allocations: 0 / 479.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.2879, allocations: 0.5701 MB / 480.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.972e-05/0.2879, allocations: 108.1 kB / 480.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.854e-05/0.288, allocations: 4 kB / 480.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002431/0.2882, allocations: 30.56 kB / 480.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.543e-05/0.2883, allocations: 29.94 kB / 480.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.2883, allocations: 12 kB / 480.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001443/0.2885, allocations: 204.3 kB / 480.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2885, allocations: 0 / 480.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005252/0.289, allocations: 95.84 kB / 480.8 MB, free: 14.6 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.001232/0.2903, allocations: 1.118 MB / 481.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001876/0.2922, allocations: 0.6657 MB / 482.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2922, allocations: 3.938 kB / 482.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007908/0.293, allocations: 464.5 kB / 483 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004005/0.2934, allocations: 47.12 kB / 483.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005465/0.2989, allocations: 3.481 MB / 486.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002015/0.2991, allocations: 0.7957 MB / 487.4 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001168/0.2992, allocations: 29.33 kB / 487.4 MB, free: 8.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.2993, allocations: 105.8 kB / 487.5 MB, free: 8.336 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2994, allocations: 4 kB / 487.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5166/0.816, allocations: 7.263 MB / 494.7 MB, free: 4.117 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001582/0.8162, allocations: 226.8 kB / 495 MB, free: 3.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.925/2.741, allocations: 0 / 495 MB, free: 3.859 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)