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.001116/0.001116, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001205/0.001205, allocations: 191.6 kB / 16.14 MB, free: 6.711 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.303/1.303, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2104/0.2104, allocations: 22.36 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 59.91 kB / 380.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.248, allocations: 54.94 MB / 435 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001478/0.2495, allocations: 0.6227 MB / 435.7 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001263/0.2497, allocations: 31.48 kB / 435.7 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.172e-05/0.2497, allocations: 2.906 kB / 435.7 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.682e-05/0.2497, allocations: 3.938 kB / 435.7 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.799e-05/0.2498, allocations: 3.938 kB / 435.7 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.154e-05/0.2499, allocations: 11.31 kB / 435.7 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.487e-05/0.25, allocations: 22.14 kB / 435.7 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.277e-05/0.25, allocations: 8.969 kB / 435.7 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.081e-05/0.25, allocations: 16.97 kB / 435.8 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.64e-05/0.2501, allocations: 28.27 kB / 435.8 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.482e-05/0.2501, allocations: 3.938 kB / 435.8 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.164e-05/0.2501, allocations: 7.312 kB / 435.8 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.529e-05/0.2502, allocations: 3.984 kB / 435.8 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.269e-05/0.2502, allocations: 18.02 kB / 435.8 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.986e-05/0.2503, allocations: 20.8 kB / 435.8 MB, free: 39.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.581e-05/0.2503, allocations: 0 / 435.8 MB, free: 39.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.2503, allocations: 0 / 435.8 MB, free: 39.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.2503, allocations: 0 / 435.8 MB, free: 39.08 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.0003556/0.2506, allocations: 367.6 kB / 436.2 MB, free: 38.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.2507, allocations: 13.72 kB / 436.2 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.01e-05/0.2507, allocations: 11.08 kB / 436.2 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.322e-05/0.2508, allocations: 167.1 kB / 436.4 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.2508, allocations: 3.344 kB / 436.4 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.969e-05/0.2508, allocations: 6.938 kB / 436.4 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.832e-05/0.2509, allocations: 52.84 kB / 436.5 MB, free: 38.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.2509, allocations: 2.969 kB / 436.5 MB, free: 38.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.251, allocations: 7.938 kB / 436.5 MB, free: 38.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.251, allocations: 0 / 436.5 MB, free: 38.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.22e-05/0.251, allocations: 17.72 kB / 436.5 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003159/0.2513, allocations: 266.1 kB / 436.7 MB, free: 38.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.2515, allocations: 61.12 kB / 436.8 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.883e-05/0.2516, allocations: 16.86 kB / 436.8 MB, free: 38.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.315e-06/0.2516, allocations: 4 kB / 436.8 MB, free: 38.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.275e-05/0.2516, allocations: 40.34 kB / 436.9 MB, free: 38.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.2516, allocations: 0 / 436.9 MB, free: 38.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.000149/0.2517, allocations: 60.81 kB / 436.9 MB, free: 38.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.325e-05/0.2518, allocations: 51.41 kB / 437 MB, free: 37.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.166e-05/0.2518, allocations: 121.5 kB / 437.1 MB, free: 37.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.575e-06/0.2519, allocations: 28.23 kB / 437.1 MB, free: 37.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.083e-05/0.2519, allocations: 90.67 kB / 437.2 MB, free: 37.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.126e-05/0.2519, allocations: 23.41 kB / 437.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.005e-05/0.2519, allocations: 19.62 kB / 437.2 MB, free: 37.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.79e-05/0.252, allocations: 317.1 kB / 437.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.401e-05/0.252, allocations: 11.69 kB / 437.6 MB, free: 37.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.852e-05/0.252, allocations: 26.78 kB / 437.6 MB, free: 37.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002501/0.2523, allocations: 75.91 kB / 437.7 MB, free: 37.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2523, allocations: 2.844 kB / 437.7 MB, free: 37.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.866e-05/0.2524, allocations: 82.73 kB / 437.8 MB, free: 37.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.2524, allocations: 6.031 kB / 437.8 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.2524, allocations: 3.938 kB / 437.8 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.2525, allocations: 3.938 kB / 437.8 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.952e-05/0.2526, allocations: 18.09 kB / 437.8 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.2526, allocations: 0 / 437.8 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.133e-05/0.2526, allocations: 6.172 kB / 437.8 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.725e-06/0.2526, allocations: 11 kB / 437.8 MB, free: 37.23 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.0001264/0.2528, allocations: 120.3 kB / 437.9 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.539e-05/0.2528, allocations: 6.312 kB / 437.9 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.3e-05/0.2528, allocations: 11.91 kB / 437.9 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.2528, allocations: 2.75 kB / 437.9 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.2528, allocations: 0 / 437.9 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2528, allocations: 3.422 kB / 437.9 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001143/0.253, allocations: 172.9 kB / 438.1 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.253, allocations: 0 / 438.1 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.618e-05/0.2531, allocations: 13.72 kB / 438.1 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.2531, allocations: 0 / 438.1 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.2531, allocations: 2.656 kB / 438.1 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.2531, allocations: 0 / 438.1 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2531, allocations: 0 / 438.1 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001285/0.2532, allocations: 170.8 kB / 438.3 MB, free: 36.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.143e-05/0.2533, allocations: 83.73 kB / 438.4 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.536e-05/0.2533, allocations: 7.094 kB / 438.4 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.73e-05/0.2534, allocations: 2.125 kB / 438.4 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.143e-05/0.2534, allocations: 0 / 438.4 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-06/0.2534, allocations: 2.5 kB / 438.4 MB, free: 36.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.383e-05/0.2534, allocations: 95.81 kB / 438.5 MB, free: 36.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2534, allocations: 0 / 438.5 MB, free: 36.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002164/0.2536, allocations: 10.62 kB / 438.5 MB, free: 36.55 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.562e-05/0.2537, allocations: 104 kB / 438.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.387e-05/0.2538, allocations: 31.59 kB / 438.6 MB, free: 36.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2538, allocations: 0 / 438.6 MB, free: 36.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.896e-05/0.2539, allocations: 12.31 kB / 438.6 MB, free: 36.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.2541, allocations: 16.42 kB / 438.7 MB, free: 36.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000264/0.2543, allocations: 169 kB / 438.8 MB, free: 36.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.222e-05/0.2544, allocations: 0.6866 MB / 439.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.792e-05/0.2545, allocations: 2.875 kB / 439.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.185e-05/0.2545, allocations: 10.47 kB / 439.5 MB, free: 35.58 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2545, allocations: 0 / 439.5 MB, free: 35.58 MB / 350.1 MB Notification: Performance of Templates: time 0.001998/0.2565, allocations: 398.3 kB / 439.9 MB, free: 35.52 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)