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.007593/0.007594, allocations: 103.6 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.001312/0.001312, allocations: 191.8 kB / 16.67 MB, free: 5.93 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09288/0.09288, allocations: 22.33 MB / 312.8 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001303, allocations: 63.89 kB / 436.5 MB, free: 12.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1057, allocations: 54.95 MB / 491.5 MB, free: 5.285 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001702/0.1075, allocations: 0.5733 MB / 492.1 MB, free: 4.715 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001778/0.1077, allocations: 39.75 kB / 492.1 MB, free: 4.676 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.69e-05/0.1077, allocations: 0 / 492.1 MB, free: 4.676 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.093e-05/0.1078, allocations: 7.938 kB / 492.1 MB, free: 4.668 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.438e-05/0.1079, allocations: 3.938 kB / 492.1 MB, free: 4.664 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001258/0.108, allocations: 11.98 kB / 492.1 MB, free: 4.652 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 8.366e-05/0.1081, allocations: 27.92 kB / 492.1 MB, free: 4.625 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.226e-05/0.1082, allocations: 3.984 kB / 492.2 MB, free: 4.621 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.87e-05/0.1082, allocations: 19.92 kB / 492.2 MB, free: 4.602 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.944e-05/0.1083, allocations: 23.84 kB / 492.2 MB, free: 4.578 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.847e-05/0.1083, allocations: 0 / 492.2 MB, free: 4.578 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.322e-05/0.1083, allocations: 4 kB / 492.2 MB, free: 4.574 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.172e-05/0.1084, allocations: 4 kB / 492.2 MB, free: 4.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.364e-05/0.1084, allocations: 19.86 kB / 492.2 MB, free: 4.551 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 7.28e-05/0.1085, allocations: 19.91 kB / 492.2 MB, free: 4.531 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1085, allocations: 3.938 kB / 492.2 MB, free: 4.527 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1085, allocations: 0 / 492.2 MB, free: 4.527 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.1085, allocations: 0 / 492.2 MB, free: 4.527 MB / 366.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.0005204/0.109, allocations: 363.6 kB / 492.6 MB, free: 4.121 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.1091, allocations: 8.031 kB / 492.6 MB, free: 4.113 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.527e-05/0.1091, allocations: 34.73 kB / 492.6 MB, free: 4.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.098e-05/0.1092, allocations: 8.844 kB / 492.7 MB, free: 4.062 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001494/0.1094, allocations: 180.2 kB / 492.8 MB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.1094, allocations: 384 / 492.8 MB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.405e-05/0.1094, allocations: 8.375 kB / 492.8 MB, free: 3.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.1095, allocations: 46.23 kB / 492.9 MB, free: 3.789 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.1096, allocations: 3.938 kB / 492.9 MB, free: 3.785 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-06/0.1096, allocations: 0 / 492.9 MB, free: 3.785 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.1096, allocations: 7.938 kB / 492.9 MB, free: 3.777 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.865e-05/0.1096, allocations: 12 kB / 492.9 MB, free: 3.766 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004639/0.1101, allocations: 276.8 kB / 493.2 MB, free: 3.445 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001875/0.1103, allocations: 54.55 kB / 493.2 MB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.473e-05/0.1103, allocations: 12.86 kB / 493.2 MB, free: 3.367 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.114e-05/0.1104, allocations: 4 kB / 493.2 MB, free: 3.363 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.167e-05/0.1104, allocations: 30.56 kB / 493.3 MB, free: 3.324 MB / 366.1 MB Notification: Performance of pre-optimization done (n=4): time 1.403e-06/0.1104, allocations: 0 / 493.3 MB, free: 3.324 MB / 366.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002017/0.1106, allocations: 65.62 kB / 493.3 MB, free: 3.254 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.1107, allocations: 55.41 kB / 493.4 MB, free: 3.188 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.1108, allocations: 121.8 kB / 493.5 MB, free: 3.059 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.1108, allocations: 25.7 kB / 493.5 MB, free: 3.027 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.942e-05/0.1108, allocations: 95.98 kB / 493.6 MB, free: 2.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.1109, allocations: 15.88 kB / 493.6 MB, free: 2.914 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.074e-05/0.1109, allocations: 21.72 kB / 493.7 MB, free: 2.887 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.111, allocations: 322.8 kB / 494 MB, free: 2.562 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.143e-05/0.1111, allocations: 15.98 kB / 494 MB, free: 2.547 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.749e-05/0.1111, allocations: 25.7 kB / 494 MB, free: 2.516 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002921/0.1114, allocations: 77.69 kB / 494.1 MB, free: 2.434 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.1114, allocations: 3.938 kB / 494.1 MB, free: 2.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000126/0.1116, allocations: 69.78 kB / 494.2 MB, free: 2.355 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.1116, allocations: 8.031 kB / 494.2 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/0.1116, allocations: 4 kB / 494.2 MB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.1116, allocations: 3.984 kB / 494.2 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.563e-05/0.1117, allocations: 19.94 kB / 494.2 MB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.1117, allocations: 0 / 494.2 MB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.787e-05/0.1118, allocations: 11.98 kB / 494.2 MB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.1118, allocations: 0 / 494.2 MB, free: 2.309 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.0001674/0.112, allocations: 130.5 kB / 494.3 MB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.902e-05/0.112, allocations: 7.906 kB / 494.4 MB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.833e-05/0.112, allocations: 3.906 kB / 494.4 MB, free: 2.156 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.112, allocations: 0 / 494.4 MB, free: 2.156 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.1121, allocations: 64 / 494.4 MB, free: 2.156 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.1121, allocations: 4 kB / 494.4 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001768/0.1122, allocations: 173.6 kB / 494.5 MB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1123, allocations: 0 / 494.5 MB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001069/0.1124, allocations: 15.98 kB / 494.5 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1124, allocations: 0 / 494.5 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.1124, allocations: 0 / 494.5 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.1124, allocations: 11.94 kB / 494.6 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1124, allocations: 0 / 494.6 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001871/0.1126, allocations: 167.4 kB / 494.7 MB, free: 1.727 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.1127, allocations: 88.94 kB / 494.8 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.1127, allocations: 4.031 kB / 494.8 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.33e-05/0.1127, allocations: 0 / 494.8 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.432e-05/0.1128, allocations: 0 / 494.8 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-06/0.1128, allocations: 0 / 494.8 MB, free: 1.617 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.887e-05/0.1128, allocations: 99.33 kB / 494.9 MB, free: 1.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 3e-07/0.1128, allocations: 0 / 494.9 MB, free: 1.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000222/0.1131, allocations: 12 kB / 494.9 MB, free: 1.508 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.0004194/0.1135, allocations: 0.6929 MB / 495.6 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001178/0.1136, allocations: 36.05 kB / 495.6 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1136, allocations: 3.938 kB / 495.7 MB, free: 0.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.203e-05/0.1137, allocations: 15.94 kB / 495.7 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.1139, allocations: 4.766 kB / 495.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.1151, allocations: 1.362 MB / 497 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002387/0.1153, allocations: 0.6807 MB / 497.7 MB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.53e-05/0.1154, allocations: 11.98 kB / 497.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.062e-05/0.1154, allocations: 11.44 kB / 497.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.1154, allocations: 0 / 497.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01853/0.134, allocations: 1.482 MB / 499.2 MB, free: 13.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.355/7.489, allocations: 17.67 kB / 499.2 MB, free: 13.13 MB / 382.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)