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.005735/0.005735, allocations: 97.94 kB / 15.73 MB, free: 6.004 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.001358/0.001358, allocations: 193 kB / 16.67 MB, free: 5.934 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2069/0.2069, allocations: 22.36 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002045/0.002045, allocations: 58.22 kB / 436.6 MB, free: 34.01 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1047, allocations: 54.97 MB / 491.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001966/0.1067, allocations: 0.5726 MB / 492.1 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001778/0.1069, allocations: 27.83 kB / 492.1 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.211e-05/0.107, allocations: 0 / 492.1 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.693e-05/0.107, allocations: 3.938 kB / 492.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.578e-05/0.1071, allocations: 11.94 kB / 492.2 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001174/0.1072, allocations: 3.984 kB / 492.2 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.626e-05/0.1073, allocations: 39.84 kB / 492.2 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.948e-05/0.1074, allocations: 0 / 492.2 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.108e-05/0.1074, allocations: 19.91 kB / 492.2 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.657e-05/0.1075, allocations: 19.86 kB / 492.2 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/0.1075, allocations: 4 kB / 492.2 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.085e-05/0.1076, allocations: 0 / 492.2 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.02e-05/0.1076, allocations: 11.94 kB / 492.3 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.183e-05/0.1076, allocations: 19.86 kB / 492.3 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.286e-05/0.1077, allocations: 24.12 kB / 492.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1077, allocations: 0 / 492.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1077, allocations: 0 / 492.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.1077, allocations: 0 / 492.3 MB, free: 0.9883 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.0004307/0.1082, allocations: 367.2 kB / 492.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.1082, allocations: 12.03 kB / 492.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.817e-05/0.1083, allocations: 34.75 kB / 492.7 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.06e-05/0.1083, allocations: 8.938 kB / 492.7 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.491e-05/0.1084, allocations: 168.3 kB / 492.9 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.1084, allocations: 384 / 492.9 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.499e-05/0.1085, allocations: 4.375 kB / 492.9 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001253/0.1086, allocations: 50.23 kB / 492.9 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.1086, allocations: 3.938 kB / 492.9 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.1086, allocations: 0 / 492.9 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.1086, allocations: 4 kB / 492.9 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.444e-05/0.1087, allocations: 19.92 kB / 493 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004463/0.1092, allocations: 280.7 kB / 493.2 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002303/0.1094, allocations: 58.5 kB / 493.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.044e-05/0.1095, allocations: 8.859 kB / 493.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.1095, allocations: 0 / 493.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.1095, allocations: 38.56 kB / 493.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.1095, allocations: 7.938 kB / 493.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002308/0.1098, allocations: 65.72 kB / 493.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.1098, allocations: 51.41 kB / 493.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.11, allocations: 117.8 kB / 493.6 MB, free: 15.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.11, allocations: 25.7 kB / 493.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.417e-05/0.1101, allocations: 96.08 kB / 493.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.452e-05/0.1101, allocations: 15.97 kB / 493.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.383e-05/0.1102, allocations: 21.72 kB / 493.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.1103, allocations: 322.8 kB / 494 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.849e-05/0.1104, allocations: 12 kB / 494.1 MB, free: 15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.131e-05/0.1104, allocations: 25.7 kB / 494.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003777/0.1108, allocations: 73.62 kB / 494.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1109, allocations: 3.938 kB / 494.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001707/0.111, allocations: 81.58 kB / 494.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.1111, allocations: 4 kB / 494.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1111, allocations: 0 / 494.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.1111, allocations: 4 kB / 494.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.1112, allocations: 19.98 kB / 494.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.1113, allocations: 0 / 494.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.921e-05/0.1113, allocations: 7.938 kB / 494.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.1113, allocations: 4 kB / 494.3 MB, free: 14.77 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.0002182/0.1116, allocations: 130.6 kB / 494.4 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.353e-05/0.1116, allocations: 0 / 494.4 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.629e-05/0.1117, allocations: 15.89 kB / 494.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1117, allocations: 3.938 kB / 494.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1117, allocations: 0 / 494.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.1117, allocations: 0 / 494.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.112, allocations: 169.6 kB / 494.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.112, allocations: 7.922 kB / 494.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001325/0.1121, allocations: 12 kB / 494.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1121, allocations: 4 kB / 494.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.1121, allocations: 0 / 494.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1121, allocations: 0 / 494.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1122, allocations: 0 / 494.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002404/0.1124, allocations: 171.4 kB / 494.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.122e-05/0.1125, allocations: 81.06 kB / 494.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.1125, allocations: 8.094 kB / 494.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.092e-05/0.1126, allocations: 4 kB / 494.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.283e-05/0.1126, allocations: 4.062 kB / 494.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.1127, allocations: 7.922 kB / 494.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.758e-05/0.1127, allocations: 91.28 kB / 495 MB, free: 13.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1128, allocations: 0 / 495 MB, free: 13.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003215/0.1131, allocations: 8 kB / 495 MB, free: 13.96 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.0005911/0.1137, allocations: 0.701 MB / 495.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001493/0.1138, allocations: 39.95 kB / 495.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.1139, allocations: 0 / 495.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.658e-05/0.1139, allocations: 15.98 kB / 495.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.1142, allocations: 5.562 kB / 495.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.1158, allocations: 1.359 MB / 497.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003818/0.1162, allocations: 0.6962 MB / 497.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.603e-05/0.1163, allocations: 4 kB / 497.8 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.799e-05/0.1163, allocations: 11.44 kB / 497.8 MB, free: 11 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1164, allocations: 0 / 497.8 MB, free: 11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02421/0.1406, allocations: 1.464 MB / 499.3 MB, free: 9.602 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.65/7.791, allocations: 11.47 kB / 499.3 MB, free: 9.59 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Modelling_principles_M2_PhasorDomain_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Modelling_principles_M2_PhasorDomain.fmu > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1)