Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Containment_elements.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.Containment_elements,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Containment_elements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Containment_elements,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Containment_elements",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.0009175/0.0009176, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.0055/0.0055, allocations: 171.6 kB / 16.27 MB, free: 6.652 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.314/1.314, 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.1892/0.1892, allocations: 22.34 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002861/0.0002861, allocations: 8 kB / 382.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2274, allocations: 55.97 MB / 438.7 MB, free: 39.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.00139/0.2288, allocations: 1.634 MB / 440.3 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004522/0.2293, allocations: 256.6 kB / 440.6 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.741e-05/0.2294, allocations: 0 / 440.6 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.2295, allocations: 20.59 kB / 440.6 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002772/0.2298, allocations: 102.4 kB / 440.7 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.455e-05/0.2299, allocations: 54.48 kB / 440.7 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002483/0.2301, allocations: 360.9 kB / 441.1 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.2302, allocations: 37.64 kB / 441.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.931e-05/0.2303, allocations: 86.62 kB / 441.2 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.2305, allocations: 125.6 kB / 441.3 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.341e-05/0.2305, allocations: 7.594 kB / 441.3 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001099/0.2306, allocations: 62.31 kB / 441.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.771e-05/0.2307, allocations: 69.03 kB / 441.5 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.154e-05/0.2308, allocations: 116.4 kB / 441.6 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000197/0.231, allocations: 258.1 kB / 441.8 MB, free: 37.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.231, allocations: 2.688 kB / 441.8 MB, free: 37.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.231, allocations: 0 / 441.8 MB, free: 37.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.231, allocations: 0 / 441.8 MB, free: 37.42 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007827/0.2318, allocations: 0.5227 MB / 442.4 MB, free: 36.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.2319, allocations: 13.06 kB / 442.4 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.789e-05/0.2319, allocations: 41.59 kB / 442.4 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.1e-05/0.2319, allocations: 21 kB / 442.4 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000249/0.2322, allocations: 320.8 kB / 442.7 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.938e-06/0.2322, allocations: 7.281 kB / 442.7 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.029e-05/0.2323, allocations: 15.98 kB / 442.8 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.2325, allocations: 139.2 kB / 442.9 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.2325, allocations: 3.938 kB / 442.9 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.2325, allocations: 4 kB / 442.9 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.2325, allocations: 6.688 kB / 442.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000156/0.2327, allocations: 108.7 kB / 443 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007332/0.2334, allocations: 0.668 MB / 443.7 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000738/0.2342, allocations: 265.2 kB / 443.9 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.2343, allocations: 87.78 kB / 444 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.309e-05/0.2343, allocations: 7.219 kB / 444 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.02e-05/0.2343, allocations: 30.56 kB / 444.1 MB, free: 35.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.2343, allocations: 0 / 444.1 MB, free: 35.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.000899/0.2352, allocations: 499.1 kB / 444.6 MB, free: 35.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.796e-05/0.2353, allocations: 58.16 kB / 444.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002455/0.2355, allocations: 323.5 kB / 444.9 MB, free: 35.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.2356, allocations: 29.7 kB / 445 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.58e-05/0.2356, allocations: 126 kB / 445.1 MB, free: 35.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.377e-05/0.2356, allocations: 51.7 kB / 445.1 MB, free: 35.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.318e-05/0.2357, allocations: 24.75 kB / 445.2 MB, free: 35.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.269e-05/0.2357, allocations: 331.2 kB / 445.5 MB, free: 34.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.664e-05/0.2358, allocations: 66.3 kB / 445.5 MB, free: 34.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.2359, allocations: 97.19 kB / 445.6 MB, free: 34.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001358/0.2373, allocations: 477.5 kB / 446.1 MB, free: 34.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.2373, allocations: 0 / 446.1 MB, free: 34.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004766/0.2378, allocations: 314.1 kB / 446.4 MB, free: 34.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.2378, allocations: 7.5 kB / 446.4 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.2378, allocations: 0 / 446.4 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001927/0.238, allocations: 54.62 kB / 446.5 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002255/0.2383, allocations: 52.25 kB / 446.5 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/0.2396, allocations: 2.617 MB / 449.1 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001631/0.2397, allocations: 21.22 kB / 449.2 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.2398, allocations: 7.062 kB / 449.2 MB, free: 31.73 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: homogeneous.T[1]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[2]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[3]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[4]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] nonhomogeneous.T[1]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [3] nonhomogeneous.T[2]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [3] nonhomogeneous.T[3]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0001595/0.2399, allocations: 167.4 kB / 449.3 MB, free: 31.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.55e-05/0.24, allocations: 20.62 kB / 449.4 MB, free: 31.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.444e-05/0.24, allocations: 30.81 kB / 449.4 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.2401, allocations: 3.984 kB / 449.4 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.2401, allocations: 2.906 kB / 449.4 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.2401, allocations: 3.422 kB / 449.4 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/0.2403, allocations: 289.5 kB / 449.7 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2403, allocations: 4 kB / 449.7 MB, free: 31.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003083/0.2407, allocations: 56.28 kB / 449.7 MB, free: 31.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001629/0.2408, allocations: 48.69 kB / 449.8 MB, free: 31.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.2409, allocations: 2.812 kB / 449.8 MB, free: 31.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.2421, allocations: 2.627 MB / 452.4 MB, free: 28.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2421, allocations: 0 / 452.4 MB, free: 28.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005128/0.2426, allocations: 416.3 kB / 452.8 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.625e-05/0.2426, allocations: 98.81 kB / 452.9 MB, free: 28.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.665e-05/0.2427, allocations: 9.547 kB / 452.9 MB, free: 28.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.2429, allocations: 11.64 kB / 452.9 MB, free: 28.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.461e-05/0.2429, allocations: 15.77 kB / 453 MB, free: 28.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.2429, allocations: 4.438 kB / 453 MB, free: 28.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001758/0.2431, allocations: 246.2 kB / 453.2 MB, free: 28.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2431, allocations: 0 / 453.2 MB, free: 28.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003453/0.2435, allocations: 82.89 kB / 453.3 MB, free: 28.12 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (homogeneous.T[1],homogeneous.T[2],homogeneous.T[3],homogeneous.T[4],nonhomogeneous.T[1],nonhomogeneous.T[2],nonhomogeneous.T[3]) * 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 (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.000701/0.2442, allocations: 0.9664 MB / 454.2 MB, free: 27.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004846/0.2447, allocations: 419 kB / 454.7 MB, free: 27.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.2447, allocations: 0 / 454.7 MB, free: 27.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002711/0.245, allocations: 314.8 kB / 455 MB, free: 26.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/0.2454, allocations: 54.66 kB / 455 MB, free: 26.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003107/0.2485, allocations: 3.271 MB / 458.3 MB, free: 24.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001355/0.2486, allocations: 0.7446 MB / 459 MB, free: 23.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001143/0.2488, allocations: 37.72 kB / 459.1 MB, free: 23.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.99e-05/0.2489, allocations: 54.72 kB / 459.1 MB, free: 23.89 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2489, allocations: 7.938 kB / 459.1 MB, free: 23.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03732/0.2862, allocations: 5.9 MB / 465 MB, free: 23.51 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002087/0.2864, allocations: 230.5 kB / 465.3 MB, free: 23.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/2.106, allocations: 0 / 465.3 MB, free: 23.25 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Containment_elements.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Containment_elements_fmu --startTime=0 --stopTime=100000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Containment_elements.fmu > AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe 2>&1)