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.0009463/0.0009461, allocations: 98.88 kB / 16.02 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008474/0.0008474, allocations: 182.7 kB / 16.92 MB, free: 6.914 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.31/1.31, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1955/0.1955, allocations: 22.35 MB / 314.4 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000308/0.0003079, allocations: 8 kB / 383.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2625, allocations: 55.98 MB / 439.2 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.0005702/0.2631, allocations: 290.4 kB / 439.5 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001394/0.2633, allocations: 36.09 kB / 439.6 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.693e-05/0.2633, allocations: 0 / 439.6 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.495e-05/0.2633, allocations: 7.875 kB / 439.6 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.478e-05/0.2634, allocations: 3.938 kB / 439.6 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.272e-05/0.2635, allocations: 6.062 kB / 439.6 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.493e-05/0.2636, allocations: 39.45 kB / 439.6 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.471e-05/0.2636, allocations: 2.906 kB / 439.6 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.313e-05/0.2637, allocations: 13.19 kB / 439.6 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.078e-05/0.2637, allocations: 22.53 kB / 439.6 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.906e-05/0.2638, allocations: 3.438 kB / 439.6 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.869e-06/0.2638, allocations: 0 / 439.6 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.741e-05/0.2638, allocations: 10.05 kB / 439.7 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.124e-05/0.2638, allocations: 39.98 kB / 439.7 MB, free: 39.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 3.747e-05/0.2639, allocations: 17.22 kB / 439.7 MB, free: 39.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2639, allocations: 2.875 kB / 439.7 MB, free: 39.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2639, allocations: 0 / 439.7 MB, free: 39.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.276e-06/0.2639, allocations: 0 / 439.7 MB, free: 39.02 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.000325/0.2642, allocations: 355.3 kB / 440.1 MB, free: 38.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.2643, allocations: 12.31 kB / 440.1 MB, free: 38.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.131e-05/0.2643, allocations: 4 kB / 440.1 MB, free: 38.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.475e-05/0.2644, allocations: 170.4 kB / 440.2 MB, free: 38.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-06/0.2644, allocations: 7.25 kB / 440.3 MB, free: 38.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.16e-05/0.2644, allocations: 3.062 kB / 440.3 MB, free: 38.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.2645, allocations: 53.39 kB / 440.3 MB, free: 38.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.2646, allocations: 192 / 440.3 MB, free: 38.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.2646, allocations: 14.94 kB / 440.3 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.2646, allocations: 0 / 440.3 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.243e-05/0.2646, allocations: 12.31 kB / 440.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00034/0.265, allocations: 276.8 kB / 440.6 MB, free: 38.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001547/0.2651, allocations: 57.47 kB / 440.7 MB, free: 38.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.899e-05/0.2652, allocations: 17.83 kB / 440.7 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/0.2652, allocations: 4 kB / 440.7 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.178e-05/0.2652, allocations: 33.28 kB / 440.7 MB, free: 38.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.2652, allocations: 0 / 440.7 MB, free: 38.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001549/0.2654, allocations: 64.84 kB / 440.8 MB, free: 37.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.898e-05/0.2654, allocations: 51.41 kB / 440.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.798e-05/0.2655, allocations: 122 kB / 440.9 MB, free: 37.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.155e-06/0.2655, allocations: 33.64 kB / 441 MB, free: 37.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.431e-05/0.2655, allocations: 95.14 kB / 441.1 MB, free: 37.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.253e-05/0.2655, allocations: 19.12 kB / 441.1 MB, free: 37.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.255e-05/0.2656, allocations: 24.47 kB / 441.1 MB, free: 37.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.308e-05/0.2656, allocations: 317.1 kB / 441.4 MB, free: 37.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.214e-05/0.2657, allocations: 10 kB / 441.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.788e-05/0.2657, allocations: 23.02 kB / 441.5 MB, free: 37.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000249/0.2659, allocations: 78.02 kB / 441.5 MB, free: 37.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.266, allocations: 0 / 441.5 MB, free: 37.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001032/0.2661, allocations: 74.78 kB / 441.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.2661, allocations: 5.312 kB / 441.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.2661, allocations: 3.234 kB / 441.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.2661, allocations: 0 / 441.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.611e-05/0.2662, allocations: 16.59 kB / 441.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/0.2662, allocations: 0 / 441.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.355e-05/0.2663, allocations: 10.88 kB / 441.6 MB, free: 37.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.385e-06/0.2663, allocations: 10.05 kB / 441.7 MB, free: 37.18 MB / 350.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.0001167/0.2664, allocations: 122.5 kB / 441.8 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.639e-05/0.2664, allocations: 2.5 kB / 441.8 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.364e-05/0.2665, allocations: 10.41 kB / 441.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.2665, allocations: 0 / 441.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.2665, allocations: 0 / 441.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2665, allocations: 3.375 kB / 441.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.2666, allocations: 178.9 kB / 442 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2666, allocations: 0 / 442 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.618e-05/0.2667, allocations: 13.91 kB / 442 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2667, allocations: 4 kB / 442 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.984e-06/0.2667, allocations: 0 / 442 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.2668, allocations: 0 / 442 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2668, allocations: 3.031 kB / 442 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001311/0.2669, allocations: 167.3 kB / 442.1 MB, free: 36.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.246e-05/0.2669, allocations: 88.55 kB / 442.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.2669, allocations: 4 kB / 442.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.372e-05/0.267, allocations: 2.594 kB / 442.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.61e-05/0.267, allocations: 0 / 442.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.267, allocations: 6.625 kB / 442.2 MB, free: 36.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.411e-05/0.2671, allocations: 94.86 kB / 442.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2671, allocations: 0 / 442.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002195/0.2673, allocations: 11.47 kB / 442.4 MB, free: 36.5 MB / 350.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 6.882e-05/0.2674, allocations: 98.69 kB / 442.4 MB, free: 36.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.876e-05/0.2675, allocations: 38.05 kB / 442.5 MB, free: 36.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2675, allocations: 0 / 442.5 MB, free: 36.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.913e-05/0.2675, allocations: 11.66 kB / 442.5 MB, free: 36.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002127/0.2677, allocations: 14.91 kB / 442.5 MB, free: 36.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002606/0.268, allocations: 205.6 kB / 442.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/0.2681, allocations: 0.686 MB / 443.4 MB, free: 35.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.951e-05/0.2682, allocations: 10.06 kB / 443.4 MB, free: 35.49 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2682, allocations: 0 / 443.4 MB, free: 35.49 MB / 350.1 MB Notification: Performance of Templates: time 0.001839/0.27, allocations: 0.7303 MB / 444.1 MB, free: 35.45 MB / 350.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 -lv LOG_STATS > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1)