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.005419/0.005419, allocations: 102.8 kB / 15.73 MB, free: 5.586 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.001161/0.001161, allocations: 188.4 kB / 16.67 MB, free: 5.523 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09073/0.09073, allocations: 22.33 MB / 312.9 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 67.91 kB / 436.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1087, allocations: 54.95 MB / 491.5 MB, free: 5.262 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001939/0.1107, allocations: 0.571 MB / 492.1 MB, free: 4.691 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001841/0.1109, allocations: 35.83 kB / 492.1 MB, free: 4.656 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.093e-05/0.1109, allocations: 0 / 492.1 MB, free: 4.656 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.716e-05/0.111, allocations: 3.938 kB / 492.1 MB, free: 4.652 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.66e-05/0.1111, allocations: 7.938 kB / 492.1 MB, free: 4.645 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001518/0.1113, allocations: 7.984 kB / 492.1 MB, free: 4.637 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 8.856e-05/0.1114, allocations: 31.91 kB / 492.1 MB, free: 4.605 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.287e-05/0.1114, allocations: 0 / 492.1 MB, free: 4.605 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.739e-05/0.1115, allocations: 19.92 kB / 492.2 MB, free: 4.586 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001071/0.1116, allocations: 23.84 kB / 492.2 MB, free: 4.562 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.1116, allocations: 8 kB / 492.2 MB, free: 4.555 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.248e-05/0.1116, allocations: 0 / 492.2 MB, free: 4.555 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.093e-05/0.1117, allocations: 4 kB / 492.2 MB, free: 4.551 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.107e-05/0.1117, allocations: 19.86 kB / 492.2 MB, free: 4.531 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 8.572e-05/0.1118, allocations: 19.84 kB / 492.2 MB, free: 4.512 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.1118, allocations: 0 / 492.2 MB, free: 4.512 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1118, allocations: 0 / 492.2 MB, free: 4.512 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.1118, allocations: 0 / 492.2 MB, free: 4.512 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.0005515/0.1124, allocations: 363.6 kB / 492.6 MB, free: 4.105 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.1124, allocations: 16.02 kB / 492.6 MB, free: 4.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.919e-05/0.1125, allocations: 34.69 kB / 492.6 MB, free: 4.047 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.249e-05/0.1125, allocations: 8.844 kB / 492.7 MB, free: 4.039 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.1127, allocations: 176.2 kB / 492.8 MB, free: 3.828 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.1127, allocations: 4.375 kB / 492.8 MB, free: 3.824 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.225e-05/0.1127, allocations: 4.375 kB / 492.8 MB, free: 3.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.1129, allocations: 46.23 kB / 492.9 MB, free: 3.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.1129, allocations: 3.938 kB / 492.9 MB, free: 3.766 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.1129, allocations: 4 kB / 492.9 MB, free: 3.762 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.1129, allocations: 8 kB / 492.9 MB, free: 3.754 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.243e-05/0.113, allocations: 12 kB / 492.9 MB, free: 3.742 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005686/0.1135, allocations: 272.8 kB / 493.2 MB, free: 3.426 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/0.1138, allocations: 50.56 kB / 493.2 MB, free: 3.367 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.523e-05/0.1138, allocations: 12.86 kB / 493.2 MB, free: 3.352 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.979e-06/0.1138, allocations: 4 kB / 493.2 MB, free: 3.348 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.1138, allocations: 34.56 kB / 493.3 MB, free: 3.305 MB / 366.1 MB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.1139, allocations: 0 / 493.3 MB, free: 3.305 MB / 366.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002497/0.1141, allocations: 65.62 kB / 493.3 MB, free: 3.234 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/0.1142, allocations: 59.39 kB / 493.4 MB, free: 3.164 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.1143, allocations: 117.8 kB / 493.5 MB, free: 3.039 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.328e-05/0.1143, allocations: 25.7 kB / 493.5 MB, free: 3.008 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.6e-05/0.1143, allocations: 99.97 kB / 493.6 MB, free: 2.906 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.437e-05/0.1144, allocations: 15.88 kB / 493.6 MB, free: 2.891 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.289e-05/0.1144, allocations: 21.72 kB / 493.7 MB, free: 2.863 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.1146, allocations: 322.8 kB / 494 MB, free: 2.539 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.608e-05/0.1146, allocations: 11.94 kB / 494 MB, free: 2.527 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.596e-05/0.1147, allocations: 25.7 kB / 494 MB, free: 2.496 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/0.1149, allocations: 77.62 kB / 494.1 MB, free: 2.414 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.115, allocations: 64 / 494.1 MB, free: 2.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001241/0.1151, allocations: 77.59 kB / 494.2 MB, free: 2.332 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.1151, allocations: 4 kB / 494.2 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1151, allocations: 0 / 494.2 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.1151, allocations: 4 kB / 494.2 MB, free: 2.324 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.388e-05/0.1152, allocations: 23.92 kB / 494.2 MB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.1152, allocations: 0 / 494.2 MB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.956e-05/0.1153, allocations: 4 kB / 494.2 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.1153, allocations: 4.219 kB / 494.2 MB, free: 2.293 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.0001686/0.1155, allocations: 126.5 kB / 494.3 MB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.038e-05/0.1155, allocations: 7.891 kB / 494.3 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.562e-05/0.1156, allocations: 15.84 kB / 494.4 MB, free: 2.133 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1156, allocations: 3.984 kB / 494.4 MB, free: 2.129 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1156, allocations: 0 / 494.4 MB, free: 2.129 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.1156, allocations: 0 / 494.4 MB, free: 2.129 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001779/0.1158, allocations: 173.6 kB / 494.5 MB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1158, allocations: 0 / 494.5 MB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.61e-05/0.1159, allocations: 15.98 kB / 494.5 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.1159, allocations: 0 / 494.5 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.1159, allocations: 0 / 494.5 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.1159, allocations: 0 / 494.5 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1159, allocations: 3.938 kB / 494.6 MB, free: 1.891 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002034/0.1161, allocations: 171.4 kB / 494.7 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.75e-05/0.1162, allocations: 81.08 kB / 494.8 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.1162, allocations: 4.031 kB / 494.8 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.203e-05/0.1163, allocations: 4 kB / 494.8 MB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.391e-05/0.1163, allocations: 0 / 494.8 MB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.1163, allocations: 0 / 494.8 MB, free: 1.602 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.891e-05/0.1164, allocations: 103.6 kB / 494.9 MB, free: 1.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.823e-06/0.1164, allocations: 0 / 494.9 MB, free: 1.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002117/0.1166, allocations: 11.94 kB / 494.9 MB, free: 1.488 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.0005145/0.1171, allocations: 0.7007 MB / 495.6 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001204/0.1172, allocations: 27.98 kB / 495.6 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1172, allocations: 0 / 495.6 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.507e-05/0.1173, allocations: 15.94 kB / 495.7 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.1175, allocations: 11.98 kB / 495.7 MB, free: 0.707 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.1188, allocations: 1.363 MB / 497 MB, free: 15.26 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/0.1191, allocations: 0.6846 MB / 497.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.007e-05/0.1192, allocations: 4 kB / 497.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.977e-05/0.1192, allocations: 11.44 kB / 497.7 MB, free: 14.54 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1192, allocations: 0 / 497.7 MB, free: 14.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01801/0.1372, allocations: 1.459 MB / 499.2 MB, free: 13.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.355/7.493, allocations: 7.812 kB / 499.2 MB, free: 13.14 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)