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: translateModel(AES.Coursework.Modelling_principles.M2_PhasorDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=80400,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M2_PhasorDomain") translateModel(AES.Coursework.Modelling_principles.M2_PhasorDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=80400,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M2_PhasorDomain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001087, allocations: 104.4 kB / 16.35 MB, free: 5.875 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.00114/0.00114, allocations: 191 kB / 17.29 MB, free: 5.516 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.349/1.349, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08974/0.08974, allocations: 22.33 MB / 313.5 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 63.06 kB / 382.2 MB, free: 41.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1155, allocations: 54.96 MB / 437.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.002073/0.1176, allocations: 0.5676 MB / 437.8 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001821/0.1178, allocations: 31.89 kB / 437.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.392e-05/0.1178, allocations: 0 / 437.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.652e-05/0.1179, allocations: 3.938 kB / 437.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.228e-05/0.118, allocations: 7.875 kB / 437.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001116/0.1181, allocations: 7.984 kB / 437.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.183e-05/0.1182, allocations: 35.91 kB / 437.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.397e-05/0.1182, allocations: 8 kB / 437.9 MB, free: 11.56 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.148e-05/0.1183, allocations: 15.92 kB / 437.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.859e-05/0.1184, allocations: 19.91 kB / 437.9 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.044e-05/0.1184, allocations: 7.938 kB / 437.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.538e-06/0.1184, allocations: 3.938 kB / 437.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.662e-05/0.1184, allocations: 0 / 437.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.495e-05/0.1185, allocations: 23.8 kB / 437.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.996e-05/0.1185, allocations: 23.91 kB / 437.9 MB, free: 11.47 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1186, allocations: 0 / 437.9 MB, free: 11.47 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1186, allocations: 4 kB / 438 MB, free: 11.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1186, allocations: 0 / 438 MB, free: 11.46 MB / 318.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.0004931/0.1191, allocations: 363.2 kB / 438.3 MB, free: 11.06 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1191, allocations: 8.031 kB / 438.3 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.726e-05/0.1192, allocations: 8.844 kB / 438.3 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001708/0.1193, allocations: 172.2 kB / 438.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.1194, allocations: 384 / 438.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.263e-05/0.1194, allocations: 8.375 kB / 438.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.1195, allocations: 50.23 kB / 438.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.1196, allocations: 192 / 438.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.1196, allocations: 11.94 kB / 438.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.1196, allocations: 3.938 kB / 438.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.758e-05/0.1196, allocations: 12 kB / 438.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004508/0.1201, allocations: 264.9 kB / 438.8 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002033/0.1203, allocations: 58.55 kB / 438.9 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.669e-05/0.1204, allocations: 16.86 kB / 438.9 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/0.1204, allocations: 0 / 438.9 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.1204, allocations: 34.5 kB / 438.9 MB, free: 10.31 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.1204, allocations: 0 / 438.9 MB, free: 10.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001957/0.1206, allocations: 61.69 kB / 439 MB, free: 10.24 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/0.1207, allocations: 51.41 kB / 439.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.1208, allocations: 121.8 kB / 439.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.1208, allocations: 33.7 kB / 439.2 MB, free: 10.01 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.425e-05/0.1209, allocations: 92.05 kB / 439.3 MB, free: 9.918 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/0.1209, allocations: 19.81 kB / 439.3 MB, free: 9.898 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.845e-05/0.1209, allocations: 17.72 kB / 439.3 MB, free: 9.875 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.1211, allocations: 318.8 kB / 439.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.953e-05/0.1212, allocations: 11.98 kB / 439.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.185e-05/0.1212, allocations: 37.64 kB / 439.7 MB, free: 9.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002791/0.1215, allocations: 73.62 kB / 439.8 MB, free: 9.422 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1215, allocations: 0 / 439.8 MB, free: 9.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001198/0.1217, allocations: 73.53 kB / 439.8 MB, free: 9.344 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.1217, allocations: 8 kB / 439.8 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1217, allocations: 0 / 439.8 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.1217, allocations: 3.938 kB / 439.8 MB, free: 9.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.986e-05/0.1218, allocations: 23.94 kB / 439.9 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.1218, allocations: 8.016 kB / 439.9 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.566e-05/0.1219, allocations: 4 kB / 439.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.1219, allocations: 0 / 439.9 MB, free: 9.297 MB / 318.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.0001613/0.1221, allocations: 126.5 kB / 440 MB, free: 9.164 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.1221, allocations: 7.906 kB / 440 MB, free: 9.156 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.679e-05/0.1221, allocations: 7.906 kB / 440 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.1221, allocations: 4 kB / 440 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1222, allocations: 0 / 440 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1222, allocations: 7.984 kB / 440 MB, free: 9.137 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.1224, allocations: 165.7 kB / 440.2 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1224, allocations: 0 / 440.2 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.1225, allocations: 15.98 kB / 440.2 MB, free: 8.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.1225, allocations: 3.984 kB / 440.2 MB, free: 8.906 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.1225, allocations: 8 kB / 440.2 MB, free: 8.898 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.1225, allocations: 0 / 440.2 MB, free: 8.898 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1225, allocations: 0 / 440.2 MB, free: 8.898 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001931/0.1227, allocations: 171.4 kB / 440.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.786e-05/0.1228, allocations: 85.05 kB / 440.5 MB, free: 8.613 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.1228, allocations: 4.062 kB / 440.5 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.07e-05/0.1229, allocations: 0 / 440.5 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.908e-05/0.1229, allocations: 3.938 kB / 440.5 MB, free: 8.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-06/0.1229, allocations: 4 kB / 440.5 MB, free: 8.602 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.739e-05/0.123, allocations: 95.27 kB / 440.6 MB, free: 8.508 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.123, allocations: 0 / 440.6 MB, free: 8.508 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002373/0.1232, allocations: 8.062 kB / 440.6 MB, free: 8.5 MB / 318.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.0001162/0.1233, allocations: 99.25 kB / 440.7 MB, free: 8.395 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001452/0.1235, allocations: 32.14 kB / 440.7 MB, free: 8.363 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1235, allocations: 0 / 440.7 MB, free: 8.363 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.941e-05/0.1236, allocations: 19.92 kB / 440.7 MB, free: 8.344 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002195/0.1238, allocations: 6.734 kB / 440.7 MB, free: 8.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003672/0.1242, allocations: 150.5 kB / 440.9 MB, free: 8.164 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.1245, allocations: 0.6884 MB / 441.6 MB, free: 7.449 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.186e-05/0.1245, allocations: 11.98 kB / 441.6 MB, free: 7.438 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.646e-05/0.1245, allocations: 7.438 kB / 441.6 MB, free: 7.43 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1245, allocations: 0 / 441.6 MB, free: 7.43 MB / 318.1 MB Notification: Performance of Templates: time 0.002948/0.1275, allocations: 412.9 kB / 442 MB, free: 7.027 MB / 318.1 MB make -j1 -f AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.makefile (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 & ./AES_AES.Coursework.Modelling_principles.M2_PhasorDomain -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1)