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.001177/0.001177, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001457/0.001457, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 223.2 MB / 239.9 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2294/0.2294, allocations: 22.33 MB / 313.3 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003849/0.0003852, allocations: 12 kB / 381.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3691, allocations: 55.97 MB / 437.8 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.000661/0.3698, allocations: 294.4 kB / 438.1 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001613/0.3699, allocations: 30.72 kB / 438.1 MB, free: 38.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.444e-05/0.37, allocations: 4 kB / 438.1 MB, free: 38.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.35e-05/0.37, allocations: 3.938 kB / 438.1 MB, free: 38.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.033e-05/0.3701, allocations: 7.984 kB / 438.1 MB, free: 38.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000103/0.3702, allocations: 6.078 kB / 438.1 MB, free: 38.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.398e-05/0.3702, allocations: 20.81 kB / 438.2 MB, free: 38.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.94e-05/0.3703, allocations: 6.172 kB / 438.2 MB, free: 38.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.521e-05/0.3703, allocations: 13.84 kB / 438.2 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.508e-05/0.3704, allocations: 16.16 kB / 438.2 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.826e-05/0.3704, allocations: 2.438 kB / 438.2 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.218e-05/0.3705, allocations: 6.906 kB / 438.2 MB, free: 38.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.447e-05/0.3705, allocations: 7.938 kB / 438.2 MB, free: 38.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.263e-05/0.3705, allocations: 28.67 kB / 438.2 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.082e-05/0.3706, allocations: 13.23 kB / 438.3 MB, free: 38.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.3706, allocations: 0 / 438.3 MB, free: 38.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.3706, allocations: 2.562 kB / 438.3 MB, free: 38.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.894e-06/0.3706, allocations: 0 / 438.3 MB, free: 38.86 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.00038/0.371, allocations: 360.2 kB / 438.6 MB, free: 38.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.371, allocations: 8.094 kB / 438.6 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.282e-05/0.3711, allocations: 2.562 kB / 438.6 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.682e-05/0.3712, allocations: 176.9 kB / 438.8 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.3712, allocations: 2.656 kB / 438.8 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.575e-05/0.3712, allocations: 6.75 kB / 438.8 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.3713, allocations: 46.09 kB / 438.8 MB, free: 38.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.3714, allocations: 0 / 438.8 MB, free: 38.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.3714, allocations: 3.953 kB / 438.8 MB, free: 38.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.3714, allocations: 0 / 438.8 MB, free: 38.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.197e-05/0.3714, allocations: 23.59 kB / 438.9 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003695/0.3718, allocations: 275.5 kB / 439.1 MB, free: 37.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001747/0.372, allocations: 56.08 kB / 439.2 MB, free: 37.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.372, allocations: 0 / 439.2 MB, free: 37.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.395e-05/0.372, allocations: 34.56 kB / 439.2 MB, free: 37.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.02e-07/0.372, allocations: 0 / 439.2 MB, free: 37.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001735/0.3722, allocations: 65.34 kB / 439.3 MB, free: 37.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.322e-05/0.3722, allocations: 51.41 kB / 439.3 MB, free: 37.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.221e-05/0.3723, allocations: 124.3 kB / 439.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.013e-05/0.3723, allocations: 29.7 kB / 439.5 MB, free: 37.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.714e-05/0.3724, allocations: 98.14 kB / 439.6 MB, free: 37.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.302e-05/0.3724, allocations: 14.56 kB / 439.6 MB, free: 37.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.578e-06/0.3724, allocations: 0 / 439.6 MB, free: 37.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.775e-05/0.3725, allocations: 322 kB / 439.9 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.337e-05/0.3725, allocations: 9.594 kB / 439.9 MB, free: 37.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.082e-05/0.3725, allocations: 25.38 kB / 440 MB, free: 37.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.915e-05/0.3726, allocations: 12.47 kB / 440 MB, free: 37.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3726, allocations: 0 / 440 MB, free: 37.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.505e-05/0.3727, allocations: 81.08 kB / 440 MB, free: 37.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.3727, allocations: 3.938 kB / 440 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3727, allocations: 0 / 440 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.3727, allocations: 11.19 kB / 440.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.819e-05/0.3728, allocations: 14.81 kB / 440.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.3728, allocations: 0 / 440.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.794e-05/0.3729, allocations: 2.812 kB / 440.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-06/0.3729, allocations: 3 kB / 440.1 MB, free: 37.1 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: Tw:VARIABLE(start = 10.0 fixed = true ) type: Real Ta: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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001601/0.3731, allocations: 119.8 kB / 440.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.461e-05/0.3731, allocations: 10.8 kB / 440.2 MB, free: 36.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.661e-05/0.3731, allocations: 11.91 kB / 440.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.3731, allocations: 3.094 kB / 440.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3731, allocations: 0 / 440.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3732, allocations: 3.938 kB / 440.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.3733, allocations: 169.2 kB / 440.4 MB, free: 36.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.3733, allocations: 0 / 440.4 MB, free: 36.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.654e-05/0.3734, allocations: 22.39 kB / 440.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3734, allocations: 0 / 440.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.3734, allocations: 3.953 kB / 440.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3734, allocations: 0 / 440.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3734, allocations: 4 kB / 440.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001366/0.3736, allocations: 176.5 kB / 440.6 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.32e-05/0.3736, allocations: 84.39 kB / 440.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.3736, allocations: 0 / 440.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.246e-05/0.3737, allocations: 3.953 kB / 440.7 MB, free: 36.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.405e-05/0.3737, allocations: 3.328 kB / 440.7 MB, free: 36.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.3737, allocations: 7.031 kB / 440.7 MB, free: 36.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.326e-05/0.3738, allocations: 94.77 kB / 440.8 MB, free: 36.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3738, allocations: 6.781 kB / 440.8 MB, free: 36.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002104/0.374, allocations: 5.25 kB / 440.8 MB, free: 36.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.568e-05/0.3741, allocations: 93.53 kB / 440.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.775e-05/0.3742, allocations: 34.66 kB / 440.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3742, allocations: 0 / 440.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.937e-05/0.3742, allocations: 16.62 kB / 440.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000132/0.3743, allocations: 3.938 kB / 440.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002526/0.3746, allocations: 172.2 kB / 441.1 MB, free: 36.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001114/0.3747, allocations: 0.6909 MB / 441.8 MB, free: 35.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.701e-05/0.3748, allocations: 3 kB / 441.8 MB, free: 35.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.204e-05/0.3748, allocations: 11.44 kB / 441.8 MB, free: 35.44 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3748, allocations: 0 / 441.8 MB, free: 35.44 MB / 350.1 MB Notification: Performance of Templates: time 0.002147/0.3769, allocations: 382.7 kB / 442.2 MB, free: 35.38 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: