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.001194/0.001193, allocations: 108 kB / 15.61 MB, free: 152 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.001363/0.001363, allocations: 195.6 kB / 16.53 MB, free: 6.664 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.355/1.355, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2147/0.2147, allocations: 22.35 MB / 312.7 MB, free: 12.56 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 67.89 kB / 380.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3199, allocations: 54.93 MB / 435.9 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.00211/0.322, allocations: 0.5892 MB / 436.5 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002243/0.3223, allocations: 66.31 kB / 436.5 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.176e-05/0.3223, allocations: 0 / 436.5 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.925e-05/0.3224, allocations: 7.875 kB / 436.5 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.245e-05/0.3225, allocations: 3.938 kB / 436.5 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001749/0.3226, allocations: 17.48 kB / 436.6 MB, free: 39.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.453e-05/0.3227, allocations: 33.66 kB / 436.6 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.613e-05/0.3228, allocations: 9.969 kB / 436.6 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.212e-05/0.3228, allocations: 24.03 kB / 436.6 MB, free: 39.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.507e-05/0.3229, allocations: 28.25 kB / 436.7 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.046e-05/0.323, allocations: 7 kB / 436.7 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.271e-05/0.323, allocations: 2.906 kB / 436.7 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.043e-05/0.323, allocations: 10.17 kB / 436.7 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.262e-05/0.323, allocations: 26.09 kB / 436.7 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.049e-05/0.3231, allocations: 26.25 kB / 436.7 MB, free: 39.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3231, allocations: 0 / 436.7 MB, free: 39.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3231, allocations: 0 / 436.7 MB, free: 39.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.7e-06/0.3231, allocations: 3.938 kB / 436.7 MB, free: 39.18 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.0004167/0.3236, allocations: 370.1 kB / 437.1 MB, free: 38.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.3236, allocations: 8.656 kB / 437.1 MB, free: 38.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.029e-05/0.3237, allocations: 40.94 kB / 437.1 MB, free: 38.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.592e-05/0.3237, allocations: 7.594 kB / 437.1 MB, free: 38.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.692e-05/0.3238, allocations: 178.4 kB / 437.3 MB, free: 38.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.3238, allocations: 384 / 437.3 MB, free: 38.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.841e-05/0.3238, allocations: 10.44 kB / 437.3 MB, free: 38.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001404/0.324, allocations: 74.06 kB / 437.4 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.324, allocations: 0 / 437.4 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.324, allocations: 4 kB / 437.4 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.324, allocations: 2.781 kB / 437.4 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.449e-05/0.3241, allocations: 35.44 kB / 437.4 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003812/0.3245, allocations: 294 kB / 437.7 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002564/0.3248, allocations: 101.7 kB / 437.8 MB, free: 38.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.748e-05/0.3248, allocations: 40.53 kB / 437.9 MB, free: 38.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.3249, allocations: 2.844 kB / 437.9 MB, free: 38.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.3249, allocations: 30.56 kB / 437.9 MB, free: 38.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.923e-06/0.3249, allocations: 112 / 437.9 MB, free: 38.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002341/0.3251, allocations: 109.1 kB / 438 MB, free: 38.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.504e-05/0.3252, allocations: 54.22 kB / 438.1 MB, free: 37.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.3e-05/0.3252, allocations: 115.4 kB / 438.2 MB, free: 37.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.508e-06/0.3252, allocations: 28.67 kB / 438.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.629e-05/0.3253, allocations: 92.05 kB / 438.3 MB, free: 37.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.3253, allocations: 40.8 kB / 438.3 MB, free: 37.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.898e-05/0.3254, allocations: 27.5 kB / 438.4 MB, free: 37.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.845e-05/0.3254, allocations: 325.6 kB / 438.7 MB, free: 37.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.304e-05/0.3255, allocations: 12.84 kB / 438.7 MB, free: 37.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.482e-05/0.3255, allocations: 47.36 kB / 438.7 MB, free: 37.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003631/0.3259, allocations: 120.3 kB / 438.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3259, allocations: 384 / 438.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001447/0.326, allocations: 108.6 kB / 439 MB, free: 37.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.3261, allocations: 5.281 kB / 439 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.3261, allocations: 0 / 439 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.3261, allocations: 6.969 kB / 439 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.3262, allocations: 30.95 kB / 439 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.3262, allocations: 4.031 kB / 439 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.222e-05/0.3263, allocations: 10.44 kB / 439 MB, free: 37.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.3263, allocations: 6.172 kB / 439 MB, free: 37.19 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.000175/0.3265, allocations: 124.1 kB / 439.1 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.981e-05/0.3265, allocations: 6.781 kB / 439.1 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001601/0.3267, allocations: 114.2 kB / 439.3 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.3267, allocations: 2.594 kB / 439.3 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3267, allocations: 4 kB / 439.3 MB, free: 36.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3267, allocations: 3.328 kB / 439.3 MB, free: 36.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001414/0.3269, allocations: 184 kB / 439.4 MB, free: 36.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3269, allocations: 0 / 439.4 MB, free: 36.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001523/0.327, allocations: 38.58 kB / 439.5 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.327, allocations: 0 / 439.5 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.3271, allocations: 0 / 439.5 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3271, allocations: 0 / 439.5 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3271, allocations: 0 / 439.5 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002054/0.3273, allocations: 233.6 kB / 439.7 MB, free: 36.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.403e-05/0.3273, allocations: 83.83 kB / 439.8 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.754e-05/0.3273, allocations: 2.75 kB / 439.8 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.85e-05/0.3274, allocations: 4 kB / 439.8 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.188e-05/0.3274, allocations: 7.641 kB / 439.8 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.621e-06/0.3274, allocations: 3.875 kB / 439.8 MB, free: 36.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.128e-05/0.3275, allocations: 89.36 kB / 439.9 MB, free: 36.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3275, allocations: 4 kB / 439.9 MB, free: 36.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002308/0.3277, allocations: 18.81 kB / 439.9 MB, free: 36.41 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.0003497/0.3281, allocations: 0.7574 MB / 440.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000155/0.3282, allocations: 67.86 kB / 440.7 MB, free: 35.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3282, allocations: 4.062 kB / 440.8 MB, free: 35.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.299e-05/0.3283, allocations: 33.81 kB / 440.8 MB, free: 35.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000232/0.3285, allocations: 6.344 kB / 440.8 MB, free: 35.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.3297, allocations: 1.504 MB / 442.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001105/0.3298, allocations: 0.6917 MB / 443 MB, free: 33.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.512e-05/0.3298, allocations: 6.469 kB / 443 MB, free: 33.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.884e-05/0.3299, allocations: 27.77 kB / 443 MB, free: 33.64 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3299, allocations: 3.938 kB / 443 MB, free: 33.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01942/0.3493, allocations: 1.701 MB / 444.7 MB, free: 33.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.566/7.916, allocations: 17.48 kB / 444.7 MB, free: 33.26 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Modelling_principles.M1_TimeDomain_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 AES_AES_Coursework_Modelling_principles_M1_TimeDomain.fmu > AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe 2>&1)