Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.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.M2_PhasorDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M2_PhasorDomain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Modelling_principles.M2_PhasorDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M2_PhasorDomain",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.006437/0.006437, allocations: 102.8 kB / 15.74 MB, free: 6.5 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.001209/0.001209, allocations: 197.8 kB / 16.68 MB, free: 6.375 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.215/0.215, allocations: 22.35 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 65.27 kB / 436.6 MB, free: 33.96 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09796/0.09953, allocations: 54.97 MB / 491.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001516/0.1011, allocations: 0.5661 MB / 492.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000143/0.1012, allocations: 27.89 kB / 492.1 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.932e-05/0.1013, allocations: 0 / 492.1 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.522e-05/0.1013, allocations: 3.938 kB / 492.1 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.953e-05/0.1014, allocations: 7.922 kB / 492.1 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001068/0.1015, allocations: 11.92 kB / 492.2 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.862e-05/0.1016, allocations: 27.92 kB / 492.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.093e-05/0.1016, allocations: 8 kB / 492.2 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.57e-05/0.1017, allocations: 15.92 kB / 492.2 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.635e-05/0.1017, allocations: 23.86 kB / 492.2 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.65e-05/0.1018, allocations: 3.984 kB / 492.2 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.538e-06/0.1018, allocations: 4 kB / 492.2 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.779e-05/0.1018, allocations: 7.922 kB / 492.2 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.802e-05/0.1018, allocations: 15.88 kB / 492.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.428e-05/0.1019, allocations: 20.12 kB / 492.3 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1019, allocations: 0 / 492.3 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1019, allocations: 0 / 492.3 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.1019, allocations: 8 kB / 492.3 MB, free: 0.9648 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003632/0.1023, allocations: 363.3 kB / 492.6 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.1024, allocations: 8.031 kB / 492.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.275e-05/0.1024, allocations: 30.75 kB / 492.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.68e-05/0.1024, allocations: 8.875 kB / 492.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.665e-05/0.1025, allocations: 176.3 kB / 492.9 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.1025, allocations: 8.375 kB / 492.9 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.144e-05/0.1025, allocations: 4.375 kB / 492.9 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001046/0.1027, allocations: 50.19 kB / 492.9 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.924e-06/0.1027, allocations: 7.938 kB / 492.9 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.1027, allocations: 4 kB / 492.9 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.1027, allocations: 0 / 492.9 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.193e-05/0.1027, allocations: 15.98 kB / 493 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003752/0.1031, allocations: 280.7 kB / 493.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/0.1033, allocations: 54.5 kB / 493.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.731e-05/0.1034, allocations: 20.94 kB / 493.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.156e-06/0.1034, allocations: 0 / 493.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.1034, allocations: 30.56 kB / 493.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=4): time 9.02e-07/0.1034, allocations: 0 / 493.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001759/0.1036, allocations: 61.64 kB / 493.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.1036, allocations: 51.41 kB / 493.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.989e-05/0.1037, allocations: 129.8 kB / 493.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.1038, allocations: 29.7 kB / 493.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.967e-05/0.1038, allocations: 92.09 kB / 493.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.548e-05/0.1038, allocations: 19.83 kB / 493.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.736e-05/0.1039, allocations: 17.72 kB / 493.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.104, allocations: 322.8 kB / 494 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.963e-05/0.1041, allocations: 12 kB / 494 MB, free: 14.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.588e-05/0.1041, allocations: 21.72 kB / 494.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002828/0.1044, allocations: 77.73 kB / 494.1 MB, free: 14.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1044, allocations: 0 / 494.1 MB, free: 14.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001334/0.1046, allocations: 77.58 kB / 494.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.1046, allocations: 8 kB / 494.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.1046, allocations: 0 / 494.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.1046, allocations: 0 / 494.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.455e-05/0.1047, allocations: 20.03 kB / 494.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.1047, allocations: 0 / 494.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.438e-05/0.1048, allocations: 7.938 kB / 494.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.1048, allocations: 3.938 kB / 494.3 MB, free: 14.75 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: 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 (8): * Single equations (assignments): 8 * 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.0001691/0.105, allocations: 130.5 kB / 494.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.768e-05/0.105, allocations: 4 kB / 494.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.669e-05/0.105, allocations: 7.906 kB / 494.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.105, allocations: 7.938 kB / 494.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.105, allocations: 0 / 494.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.1051, allocations: 4.188 kB / 494.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001786/0.1052, allocations: 173.5 kB / 494.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1053, allocations: 0 / 494.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.1054, allocations: 24.03 kB / 494.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1054, allocations: 0 / 494.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.1054, allocations: 4 kB / 494.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.1054, allocations: 0 / 494.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1054, allocations: 160 / 494.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001734/0.1056, allocations: 171.4 kB / 494.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.188e-05/0.1056, allocations: 85.09 kB / 494.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.1057, allocations: 3.984 kB / 494.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.553e-05/0.1057, allocations: 0 / 494.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.06e-05/0.1058, allocations: 0 / 494.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-06/0.1058, allocations: 4 kB / 494.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.322e-05/0.1058, allocations: 95.27 kB / 495 MB, free: 13.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1058, allocations: 0 / 495 MB, free: 13.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000222/0.1061, allocations: 12.06 kB / 495 MB, free: 13.94 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (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 (4): * Single equations (assignments): 4 * 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.0004095/0.1065, allocations: 0.7007 MB / 495.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001174/0.1066, allocations: 31.97 kB / 495.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1066, allocations: 0 / 495.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.496e-05/0.1066, allocations: 15.94 kB / 495.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002135/0.1069, allocations: 14.52 kB / 495.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.1081, allocations: 1.363 MB / 497.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.1084, allocations: 0.6807 MB / 497.8 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.177e-05/0.1085, allocations: 4 kB / 497.8 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.352e-05/0.1085, allocations: 19.42 kB / 497.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1085, allocations: 0 / 497.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01872/0.1273, allocations: 1.461 MB / 499.3 MB, free: 9.582 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.393/7.521, allocations: 13.44 kB / 499.3 MB, free: 9.57 MB / 366.1 MB (rm -f AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Modelling_principles.M2_PhasorDomain_res.csv --start-time 0 --stop-time 864000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 21.4925 AES_AES_Coursework_Modelling_principles_M2_PhasorDomain.fmu > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1)