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.001005/0.001005, allocations: 90.67 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.007836/0.007836, allocations: 171.1 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.319/1.319, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1913/0.1913, allocations: 22.34 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002958/0.0002958, allocations: 8 kB / 382.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2344/0.2347, allocations: 55.98 MB / 438.7 MB, free: 39.29 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.Heater_power_vs_wTin.heater_wT): time 0.01972/0.2545, allocations: 21.65 MB / 460.3 MB, free: 31.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.2556, allocations: 0.6735 MB / 461 MB, free: 31.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.567e-05/0.2557, allocations: 6.094 kB / 461 MB, free: 31.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.2558, allocations: 32.67 kB / 461 MB, free: 31.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001828/0.256, allocations: 100 kB / 461.1 MB, free: 30.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002851/0.2563, allocations: 83.42 kB / 461.2 MB, free: 30.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003814/0.2567, allocations: 494 kB / 461.7 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002524/0.2569, allocations: 205.8 kB / 461.9 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.2571, allocations: 144.4 kB / 462 MB, free: 30.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002708/0.2574, allocations: 215.3 kB / 462.3 MB, free: 30.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.02e-05/0.2574, allocations: 22.53 kB / 462.3 MB, free: 30.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.647e-05/0.2575, allocations: 23.06 kB / 462.3 MB, free: 30.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.999e-05/0.2576, allocations: 109.5 kB / 462.4 MB, free: 30.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001542/0.2577, allocations: 198.5 kB / 462.6 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002927/0.258, allocations: 425.2 kB / 463 MB, free: 30.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.2581, allocations: 5.125 kB / 463 MB, free: 30.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2581, allocations: 0 / 463 MB, free: 30.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.2581, allocations: 0 / 463 MB, free: 30.22 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.001087/0.2592, allocations: 0.651 MB / 463.7 MB, free: 29.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.2592, allocations: 13.09 kB / 463.7 MB, free: 29.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.134e-05/0.2593, allocations: 66.03 kB / 463.7 MB, free: 29.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.94e-05/0.2593, allocations: 38.44 kB / 463.8 MB, free: 29.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002697/0.2596, allocations: 302.9 kB / 464.1 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.2597, allocations: 18.28 kB / 464.1 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.524e-05/0.2597, allocations: 24.72 kB / 464.1 MB, free: 29.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006457/0.2604, allocations: 359.2 kB / 464.5 MB, free: 29.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.2604, allocations: 0 / 464.5 MB, free: 29.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.177e-05/0.2604, allocations: 10.09 kB / 464.5 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.882e-06/0.2604, allocations: 6.344 kB / 464.5 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007425/0.2612, allocations: 353.3 kB / 464.8 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.2629, allocations: 1.273 MB / 466.1 MB, free: 28.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000551/0.2635, allocations: 318.2 kB / 466.4 MB, free: 28.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004283/0.2639, allocations: 239.4 kB / 466.7 MB, free: 28.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.2639, allocations: 11.12 kB / 466.7 MB, free: 28.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.653e-05/0.264, allocations: 36.41 kB / 466.7 MB, free: 27.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.383e-06/0.264, allocations: 0 / 466.7 MB, free: 27.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002749/0.2667, allocations: 1.293 MB / 468 MB, free: 27.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.97e-05/0.2667, allocations: 58.44 kB / 468.1 MB, free: 27.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.267, allocations: 255.2 kB / 468.3 MB, free: 27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.267, allocations: 29.7 kB / 468.3 MB, free: 26.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.443e-05/0.2671, allocations: 164.3 kB / 468.5 MB, free: 26.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.277e-05/0.2671, allocations: 101.7 kB / 468.6 MB, free: 26.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.062e-05/0.2672, allocations: 34.05 kB / 468.6 MB, free: 26.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.111e-05/0.2673, allocations: 336.2 kB / 468.9 MB, free: 26.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000394/0.2677, allocations: 187.4 kB / 469.1 MB, free: 26.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003592/0.268, allocations: 197.8 kB / 469.3 MB, free: 26.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007123/0.2687, allocations: 416.7 kB / 469.7 MB, free: 25.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2688, allocations: 3.094 kB / 469.7 MB, free: 25.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001354/0.2701, allocations: 0.6335 MB / 470.4 MB, free: 25.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.2701, allocations: 6.031 kB / 470.4 MB, free: 25.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.2701, allocations: 3.141 kB / 470.4 MB, free: 25.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006686/0.2708, allocations: 177.5 kB / 470.6 MB, free: 25.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005172/0.2713, allocations: 95.83 kB / 470.6 MB, free: 25.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003592/0.2749, allocations: 7.073 MB / 477.7 MB, free: 17.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003007/0.2753, allocations: 49.97 kB / 477.8 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.612e-05/0.2753, allocations: 12 kB / 477.8 MB, free: 17.44 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.0001231/0.2754, allocations: 153 kB / 477.9 MB, free: 17.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.792e-05/0.2755, allocations: 35.56 kB / 478 MB, free: 17.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001214/0.2767, allocations: 0.6016 MB / 478.6 MB, free: 16.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.2767, allocations: 8.031 kB / 478.6 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.2767, allocations: 3.984 kB / 478.6 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.2767, allocations: 11.89 kB / 478.6 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003792/0.2771, allocations: 440.9 kB / 479 MB, free: 16.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2771, allocations: 3.938 kB / 479 MB, free: 16.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005249/0.2777, allocations: 86.61 kB / 479.1 MB, free: 16.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004292/0.2781, allocations: 145.8 kB / 479.2 MB, free: 16.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.87e-05/0.2782, allocations: 14.86 kB / 479.3 MB, free: 16.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002932/0.2811, allocations: 6.683 MB / 485.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2811, allocations: 0 / 485.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.2826, allocations: 0.8955 MB / 486.8 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.555e-05/0.2827, allocations: 104 kB / 486.9 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.527e-05/0.2827, allocations: 8.062 kB / 487 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002922/0.283, allocations: 28.58 kB / 487 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.414e-05/0.2831, allocations: 41.11 kB / 487 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.2832, allocations: 12 kB / 487 MB, free: 7.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001193/0.2833, allocations: 185.7 kB / 487.2 MB, free: 7.773 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2833, allocations: 0 / 487.2 MB, free: 7.773 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004121/0.2837, allocations: 127.8 kB / 487.3 MB, free: 7.648 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.001708/0.2854, allocations: 1.438 MB / 488.8 MB, free: 6.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.2866, allocations: 1.018 MB / 489.8 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2866, allocations: 0 / 489.8 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007738/0.2874, allocations: 0.7848 MB / 490.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004326/0.2879, allocations: 67.28 kB / 490.6 MB, free: 4.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006775/0.2946, allocations: 4.52 MB / 495.2 MB, free: 336 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.2949, allocations: 0.7927 MB / 496 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001968/0.2951, allocations: 51.84 kB / 496 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001779/0.2953, allocations: 96.95 kB / 496.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2953, allocations: 3.938 kB / 496.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05145/0.3468, allocations: 8.582 MB / 0.4929 GB, free: 9.309 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001778/0.347, allocations: 236.4 kB / 0.4931 GB, free: 9.055 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.929/2.276, allocations: 4 kB / 0.4931 GB, free: 9.051 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)