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.001132/0.001132, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001269/0.001269, allocations: 200.5 kB / 16.26 MB, free: 6.625 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.191/1.191, allocations: 222.9 MB / 239.9 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.176/0.176, allocations: 22.37 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 55.91 kB / 380.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2248, allocations: 54.94 MB / 435.4 MB, free: 39.55 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.02635/0.2511, allocations: 22.52 MB / 457.9 MB, free: 31.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.2522, allocations: 437.7 kB / 458.3 MB, free: 30.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.2523, allocations: 3.125 kB / 458.3 MB, free: 30.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.769e-05/0.2524, allocations: 27.69 kB / 458.3 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002025/0.2526, allocations: 83.61 kB / 458.4 MB, free: 30.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000273/0.2529, allocations: 95.12 kB / 458.5 MB, free: 30.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003185/0.2533, allocations: 414.3 kB / 458.9 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002976/0.2536, allocations: 246.9 kB / 459.1 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.2537, allocations: 166.2 kB / 459.3 MB, free: 30.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001877/0.2539, allocations: 206.6 kB / 459.5 MB, free: 30.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.134e-05/0.254, allocations: 36.84 kB / 459.5 MB, free: 30.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.2541, allocations: 68.88 kB / 459.6 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.658e-05/0.2542, allocations: 93.52 kB / 459.7 MB, free: 30.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001353/0.2543, allocations: 192.4 kB / 459.9 MB, free: 30.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000313/0.2546, allocations: 436.2 kB / 460.3 MB, free: 29.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2546, allocations: 0 / 460.3 MB, free: 29.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2546, allocations: 5.094 kB / 460.3 MB, free: 29.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.2546, allocations: 0 / 460.3 MB, free: 29.96 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.001016/0.2557, allocations: 0.6778 MB / 461 MB, free: 29.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.2557, allocations: 9.062 kB / 461 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.764e-05/0.2558, allocations: 61.39 kB / 461.1 MB, free: 29.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.02e-05/0.2559, allocations: 39.34 kB / 461.1 MB, free: 29.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.2562, allocations: 310.8 kB / 461.4 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.2562, allocations: 19.44 kB / 461.4 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.749e-05/0.2563, allocations: 29.38 kB / 461.5 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005136/0.2568, allocations: 277.5 kB / 461.7 MB, free: 28.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.2568, allocations: 5.344 kB / 461.7 MB, free: 28.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.651e-05/0.2568, allocations: 9.562 kB / 461.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.2568, allocations: 7.406 kB / 461.8 MB, free: 28.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005435/0.2574, allocations: 250 kB / 462 MB, free: 28.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.2586, allocations: 0.8171 MB / 462.8 MB, free: 28.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004697/0.2591, allocations: 240.1 kB / 463.1 MB, free: 28.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003017/0.2594, allocations: 145.9 kB / 463.2 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.2594, allocations: 10.59 kB / 463.2 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.667e-05/0.2594, allocations: 32.06 kB / 463.2 MB, free: 28.14 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001915/0.2596, allocations: 55.53 kB / 463.3 MB, free: 28.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.2596, allocations: 0 / 463.3 MB, free: 28.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.003283/0.2629, allocations: 0.9639 MB / 464.3 MB, free: 27.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.632e-05/0.263, allocations: 53.78 kB / 464.3 MB, free: 27.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/0.2632, allocations: 289.2 kB / 464.6 MB, free: 27.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.2632, allocations: 34.86 kB / 464.6 MB, free: 27.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.786e-05/0.2633, allocations: 179.6 kB / 464.8 MB, free: 27.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.425e-05/0.2634, allocations: 79.2 kB / 464.9 MB, free: 27.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-05/0.2635, allocations: 49.28 kB / 464.9 MB, free: 27.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.917e-05/0.2635, allocations: 339.4 kB / 465.3 MB, free: 26.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.2638, allocations: 100.6 kB / 465.4 MB, free: 26.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.264, allocations: 107.9 kB / 465.5 MB, free: 26.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004712/0.2645, allocations: 240 kB / 465.7 MB, free: 26.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2645, allocations: 3.938 kB / 465.7 MB, free: 26.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001625/0.2661, allocations: 498.2 kB / 466.2 MB, free: 26.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.2662, allocations: 5.406 kB / 466.2 MB, free: 26.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.2662, allocations: 0 / 466.2 MB, free: 26.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/0.2673, allocations: 205.4 kB / 466.4 MB, free: 26.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005826/0.2679, allocations: 92.58 kB / 466.5 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003198/0.2711, allocations: 4.771 MB / 471.2 MB, free: 21.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002152/0.2714, allocations: 15.17 kB / 471.3 MB, free: 21.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.2714, allocations: 7.375 kB / 471.3 MB, free: 21.55 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.0001167/0.2715, allocations: 149.7 kB / 471.4 MB, free: 21.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.27e-05/0.2716, allocations: 27.72 kB / 471.4 MB, free: 21.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001196/0.2728, allocations: 0.5139 MB / 472 MB, free: 20.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.2728, allocations: 4 kB / 472 MB, free: 20.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.2728, allocations: 0 / 472 MB, free: 20.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.2728, allocations: 3.234 kB / 472 MB, free: 20.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00145/0.2743, allocations: 0.9404 MB / 472.9 MB, free: 20.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2743, allocations: 4.062 kB / 472.9 MB, free: 20.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000467/0.2748, allocations: 91.25 kB / 473 MB, free: 20 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005836/0.2754, allocations: 148.4 kB / 473.1 MB, free: 19.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.2754, allocations: 4 kB / 473.1 MB, free: 19.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001912/0.2773, allocations: 4.428 MB / 477.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2773, allocations: 0 / 477.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.2784, allocations: 0.5619 MB / 478.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.166e-05/0.2784, allocations: 104.7 kB / 478.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.91e-05/0.2785, allocations: 11.38 kB / 478.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.2787, allocations: 15.14 kB / 478.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.805e-05/0.2788, allocations: 37.69 kB / 478.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.2788, allocations: 8 kB / 478.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000124/0.2789, allocations: 207.7 kB / 478.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2789, allocations: 4 kB / 478.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004537/0.2794, allocations: 95.84 kB / 478.6 MB, free: 14.26 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.001076/0.2805, allocations: 1.079 MB / 479.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001687/0.2822, allocations: 0.6687 MB / 480.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2822, allocations: 0 / 480.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006665/0.2828, allocations: 448.8 kB / 480.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.2832, allocations: 59.5 kB / 480.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004745/0.2879, allocations: 3.41 MB / 484.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00014/0.2881, allocations: 0.7889 MB / 485.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.2882, allocations: 33.27 kB / 485.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.2883, allocations: 109.6 kB / 485.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2883, allocations: 0 / 485.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0229/0.3112, allocations: 7.688 MB / 492.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/0.3114, allocations: 218.3 kB / 493.1 MB, free: 3.316 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.836/2.147, allocations: 8 kB / 493.1 MB, free: 3.309 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)