Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M1_TimeDomain.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.Modelling_principles.M1_TimeDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M1_TimeDomain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Modelling_principles.M1_TimeDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M1_TimeDomain",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.000856/0.0008561, allocations: 98.03 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.005333/0.005333, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.414/1.414, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2003/0.2003, allocations: 22.34 MB / 313.8 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002978/0.0002978, allocations: 11.98 kB / 382.7 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3005, allocations: 55.97 MB / 438.7 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.0006233/0.3012, allocations: 328.9 kB / 439 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001688/0.3014, allocations: 63.84 kB / 439.1 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.494e-05/0.3014, allocations: 3.938 kB / 439.1 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.247e-05/0.3014, allocations: 3.938 kB / 439.1 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.473e-05/0.3015, allocations: 0 / 439.1 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001173/0.3016, allocations: 17.88 kB / 439.1 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.891e-05/0.3017, allocations: 40.59 kB / 439.1 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.488e-05/0.3017, allocations: 8.234 kB / 439.1 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.957e-05/0.3018, allocations: 16.19 kB / 439.1 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.027e-05/0.3018, allocations: 39.27 kB / 439.2 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.3019, allocations: 0 / 439.2 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.207e-06/0.3019, allocations: 3.031 kB / 439.2 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.821e-05/0.3019, allocations: 10.14 kB / 439.2 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.005e-05/0.3019, allocations: 54.64 kB / 439.2 MB, free: 38.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.201e-05/0.302, allocations: 26.67 kB / 439.3 MB, free: 38.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.302, allocations: 0 / 439.3 MB, free: 38.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.302, allocations: 0 / 439.3 MB, free: 38.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.302, allocations: 0 / 439.3 MB, free: 38.71 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003364/0.3024, allocations: 365.4 kB / 439.6 MB, free: 38.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3024, allocations: 12.78 kB / 439.6 MB, free: 38.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.84e-05/0.3024, allocations: 40.97 kB / 439.7 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.437e-05/0.3025, allocations: 7.938 kB / 439.7 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.307e-05/0.3026, allocations: 176.2 kB / 439.9 MB, free: 38.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.3026, allocations: 4.375 kB / 439.9 MB, free: 38.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/0.3026, allocations: 6.406 kB / 439.9 MB, free: 38.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.3027, allocations: 70.86 kB / 439.9 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.3027, allocations: 0 / 439.9 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.3028, allocations: 3 kB / 439.9 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.3028, allocations: 0 / 439.9 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.231e-05/0.3029, allocations: 34.14 kB / 440 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003282/0.3032, allocations: 303.1 kB / 440.3 MB, free: 37.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.3034, allocations: 105.4 kB / 440.4 MB, free: 37.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.126e-05/0.3035, allocations: 31.72 kB / 440.4 MB, free: 37.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.3035, allocations: 2.344 kB / 440.4 MB, free: 37.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.252e-05/0.3035, allocations: 34.56 kB / 440.4 MB, free: 37.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.102e-06/0.3035, allocations: 192 / 440.4 MB, free: 37.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002055/0.3037, allocations: 102.8 kB / 440.5 MB, free: 37.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.53e-05/0.3038, allocations: 65.66 kB / 440.6 MB, free: 37.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.556e-05/0.3038, allocations: 114.2 kB / 440.7 MB, free: 37.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.3039, allocations: 33.64 kB / 440.8 MB, free: 37.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.151e-05/0.3039, allocations: 91.92 kB / 440.8 MB, free: 37.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.061e-05/0.3039, allocations: 37.67 kB / 440.9 MB, free: 37.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.278e-05/0.3039, allocations: 19.62 kB / 440.9 MB, free: 37.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.052e-05/0.304, allocations: 324.6 kB / 441.2 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.257e-05/0.304, allocations: 19.33 kB / 441.2 MB, free: 36.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.142e-05/0.3041, allocations: 35.03 kB / 441.3 MB, free: 36.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003394/0.3044, allocations: 133.2 kB / 441.4 MB, free: 36.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3044, allocations: 0 / 441.4 MB, free: 36.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001265/0.3046, allocations: 101.6 kB / 441.5 MB, free: 36.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.034e-05/0.3046, allocations: 5.812 kB / 441.5 MB, free: 36.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.3046, allocations: 3.938 kB / 441.5 MB, free: 36.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.3046, allocations: 2.594 kB / 441.5 MB, free: 36.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.3047, allocations: 34.64 kB / 441.5 MB, free: 36.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.3048, allocations: 3.656 kB / 441.5 MB, free: 36.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.732e-05/0.3048, allocations: 0 / 441.5 MB, free: 36.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.3048, allocations: 7.969 kB / 441.6 MB, free: 36.71 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: I:VARIABLE(start = 0.0 fixed = true ) type: Real Ta:VARIABLE(start = 10.0 fixed = true ) type: Real Tw:VARIABLE(start = 10.0 fixed = true ) type: Real 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 (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001187/0.3049, allocations: 120.4 kB / 441.7 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.7e-05/0.305, allocations: 9.125 kB / 441.7 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001524/0.3051, allocations: 116.7 kB / 441.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.3051, allocations: 3.031 kB / 441.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3051, allocations: 0 / 441.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3052, allocations: 0 / 441.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001381/0.3053, allocations: 191.5 kB / 442 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.3053, allocations: 0 / 442 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.3055, allocations: 28.95 kB / 442 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.3055, allocations: 0 / 442 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.3055, allocations: 0 / 442 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.3055, allocations: 2.781 kB / 442 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3055, allocations: 7.938 kB / 442 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001874/0.3057, allocations: 229.1 kB / 442.2 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.167e-05/0.3057, allocations: 83.55 kB / 442.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.3057, allocations: 6.375 kB / 442.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.403e-05/0.3058, allocations: 0 / 442.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.69e-05/0.3058, allocations: 6.594 kB / 442.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.3058, allocations: 6.562 kB / 442.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.068e-05/0.3059, allocations: 97.86 kB / 442.4 MB, free: 35.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3059, allocations: 3.938 kB / 442.4 MB, free: 35.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002226/0.3061, allocations: 15.25 kB / 442.5 MB, free: 35.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (I,Ta,Tw) * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003203/0.3064, allocations: 0.7524 MB / 443.2 MB, free: 35.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000118/0.3066, allocations: 66.64 kB / 443.3 MB, free: 35.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3066, allocations: 4.062 kB / 443.3 MB, free: 35.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.059e-05/0.3066, allocations: 33.47 kB / 443.3 MB, free: 35.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002044/0.3068, allocations: 6.562 kB / 443.3 MB, free: 35.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009984/0.3078, allocations: 1.524 MB / 444.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001162/0.308, allocations: 0.6913 MB / 445.5 MB, free: 33.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.345e-05/0.308, allocations: 9.234 kB / 445.5 MB, free: 33.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.327e-05/0.308, allocations: 29.42 kB / 445.6 MB, free: 33.14 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.308, allocations: 0 / 445.6 MB, free: 33.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01006/0.3181, allocations: 1.52 MB / 447.1 MB, free: 32.98 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001289/0.3183, allocations: 192.5 kB / 447.3 MB, free: 32.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.785/2.103, allocations: 6.688 kB / 447.3 MB, free: 32.71 MB / 350.1 MB (rm -f AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M1_TimeDomain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Modelling_principles_M1_TimeDomain_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Modelling_principles_M1_TimeDomain.fmu > AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe 2>&1)