Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.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.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",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.001226/0.001226, allocations: 108 kB / 15.6 MB, free: 132 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.001192/0.001192, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.219/1.219, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1814/0.1814, allocations: 22.35 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 63.91 kB / 380.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.224/0.2255, allocations: 54.94 MB / 435.9 MB, free: 39.96 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.Heater_power_vs_wTin.heater_wT): time 0.02392/0.2495, allocations: 21.98 MB / 457.9 MB, free: 32.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.2505, allocations: 0.6713 MB / 458.5 MB, free: 31.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.01e-05/0.2506, allocations: 2.25 kB / 458.5 MB, free: 31.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001257/0.2507, allocations: 40.64 kB / 458.6 MB, free: 31.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.2509, allocations: 113.8 kB / 458.7 MB, free: 31.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003243/0.2512, allocations: 96.77 kB / 458.8 MB, free: 31.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004162/0.2517, allocations: 418.6 kB / 459.2 MB, free: 31.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000339/0.252, allocations: 238.3 kB / 459.4 MB, free: 31.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002114/0.2522, allocations: 177.3 kB / 459.6 MB, free: 31.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003207/0.2526, allocations: 220.3 kB / 459.8 MB, free: 31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.424e-05/0.2527, allocations: 38.44 kB / 459.9 MB, free: 31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.543e-05/0.2528, allocations: 38.84 kB / 459.9 MB, free: 31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.2529, allocations: 130 kB / 460 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002056/0.2531, allocations: 193 kB / 460.2 MB, free: 30.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003928/0.2535, allocations: 452.2 kB / 460.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2535, allocations: 0 / 460.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.2535, allocations: 0 / 460.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.2536, allocations: 1.219 kB / 460.6 MB, free: 30.66 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001239/0.2548, allocations: 0.6805 MB / 461.3 MB, free: 30.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.2548, allocations: 9.281 kB / 461.3 MB, free: 30.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.727e-05/0.2549, allocations: 63.36 kB / 461.4 MB, free: 30.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.697e-05/0.255, allocations: 36.67 kB / 461.4 MB, free: 30.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002759/0.2553, allocations: 299 kB / 461.7 MB, free: 29.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.2553, allocations: 19.03 kB / 461.7 MB, free: 29.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.225e-05/0.2553, allocations: 24.75 kB / 461.8 MB, free: 29.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006323/0.256, allocations: 348 kB / 462.1 MB, free: 29.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.256, allocations: 0 / 462.1 MB, free: 29.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.256, allocations: 10.59 kB / 462.1 MB, free: 29.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.2561, allocations: 5.406 kB / 462.1 MB, free: 29.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006888/0.2568, allocations: 333.4 kB / 462.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001684/0.2584, allocations: 1.253 MB / 463.7 MB, free: 28.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005296/0.259, allocations: 319 kB / 464 MB, free: 28.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004062/0.2594, allocations: 229.8 kB / 464.2 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.2594, allocations: 7.609 kB / 464.2 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.238e-05/0.2595, allocations: 35.92 kB / 464.3 MB, free: 28.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.483e-06/0.2595, allocations: 0 / 464.3 MB, free: 28.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002691/0.2622, allocations: 1.225 MB / 465.5 MB, free: 27.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.075e-05/0.2622, allocations: 62.5 kB / 465.6 MB, free: 27.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002093/0.2624, allocations: 256.9 kB / 465.8 MB, free: 27.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.2624, allocations: 31.02 kB / 465.9 MB, free: 27.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.429e-05/0.2625, allocations: 163.6 kB / 466 MB, free: 27.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.492e-05/0.2626, allocations: 100.7 kB / 466.1 MB, free: 27.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.2627, allocations: 63.03 kB / 466.2 MB, free: 27.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.165e-05/0.2628, allocations: 336.1 kB / 466.5 MB, free: 26.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003803/0.2631, allocations: 175.5 kB / 466.7 MB, free: 26.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003413/0.2635, allocations: 185.3 kB / 466.9 MB, free: 26.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006923/0.2642, allocations: 397.2 kB / 467.2 MB, free: 26.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2642, allocations: 0 / 467.2 MB, free: 26.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001295/0.2655, allocations: 0.6061 MB / 467.8 MB, free: 25.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.2655, allocations: 8 kB / 467.9 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2655, allocations: 3.469 kB / 467.9 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006803/0.2662, allocations: 169.3 kB / 468 MB, free: 25.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005135/0.2667, allocations: 95.95 kB / 468.1 MB, free: 25.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0037/0.2705, allocations: 7.592 MB / 475.7 MB, free: 17.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002897/0.2708, allocations: 42.38 kB / 475.7 MB, free: 17.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.2708, allocations: 11.52 kB / 475.8 MB, free: 17.38 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 (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000121/0.2709, allocations: 165.7 kB / 475.9 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.721e-05/0.271, allocations: 23.72 kB / 475.9 MB, free: 17.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0012/0.2722, allocations: 0.578 MB / 476.5 MB, free: 16.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2722, allocations: 4 kB / 476.5 MB, free: 16.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2722, allocations: 4 kB / 476.5 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2722, allocations: 3.375 kB / 476.5 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003676/0.2726, allocations: 446.9 kB / 477 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2726, allocations: 0 / 477 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005088/0.2731, allocations: 88.08 kB / 477.1 MB, free: 16.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000437/0.2736, allocations: 143.9 kB / 477.2 MB, free: 16.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.821e-05/0.2736, allocations: 11.94 kB / 477.2 MB, free: 16.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003084/0.2767, allocations: 7.209 MB / 484.4 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2767, allocations: 8.156 kB / 484.4 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001474/0.2782, allocations: 0.851 MB / 485.3 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.586e-05/0.2783, allocations: 111.9 kB / 485.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.191e-05/0.2783, allocations: 11.94 kB / 485.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002812/0.2786, allocations: 25.7 kB / 485.4 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.161e-05/0.2787, allocations: 43.84 kB / 485.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.2787, allocations: 4 kB / 485.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001198/0.2788, allocations: 189.7 kB / 485.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2789, allocations: 0 / 485.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000423/0.2793, allocations: 123.8 kB / 485.8 MB, free: 7.113 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * 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 (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001669/0.281, allocations: 1.397 MB / 487.2 MB, free: 5.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.2822, allocations: 1.025 MB / 488.2 MB, free: 4.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2822, allocations: 0 / 488.2 MB, free: 4.785 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007245/0.283, allocations: 0.7834 MB / 489 MB, free: 3.988 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004046/0.2834, allocations: 70.11 kB / 489 MB, free: 3.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006662/0.29, allocations: 4.246 MB / 493.3 MB, free: 36 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000341/0.2904, allocations: 0.7918 MB / 494.1 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001894/0.2906, allocations: 53.66 kB / 494.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/0.2908, allocations: 100.7 kB / 494.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2908, allocations: 4 kB / 494.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.605/3.896, allocations: 9.201 MB / 0.4916 GB, free: 8.531 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.58/18.47, allocations: 12.77 kB / 0.4917 GB, free: 8.52 MB / 366.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT_fmu --startTime=0 --stopTime=1.5e+06 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT.fmu > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1)