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.001277/0.001277, allocations: 103.2 kB / 15.98 MB, free: 5.891 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.001316/0.001316, allocations: 189.4 kB / 16.91 MB, free: 5.746 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.249/1.249, allocations: 222.9 MB / 240.6 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1902/0.1902, allocations: 22.35 MB / 313.1 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 59.91 kB / 380.9 MB, free: 10.94 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2367, allocations: 54.94 MB / 435.9 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001429/0.2382, allocations: 0.6196 MB / 436.5 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001209/0.2383, allocations: 37.66 kB / 436.5 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.131e-05/0.2383, allocations: 4 kB / 436.5 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.592e-05/0.2384, allocations: 0 / 436.5 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.586e-05/0.2384, allocations: 3.938 kB / 436.6 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.864e-05/0.2385, allocations: 6.141 kB / 436.6 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.983e-05/0.2386, allocations: 37.42 kB / 436.6 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.813e-05/0.2386, allocations: 5.594 kB / 436.6 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.221e-05/0.2387, allocations: 14.97 kB / 436.6 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.108e-05/0.2387, allocations: 20.33 kB / 436.6 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.2387, allocations: 2.375 kB / 436.6 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.968e-06/0.2388, allocations: 4 kB / 436.6 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.574e-05/0.2388, allocations: 14.3 kB / 436.7 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.202e-05/0.2388, allocations: 10.78 kB / 436.7 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 3.856e-05/0.2389, allocations: 16.38 kB / 436.7 MB, free: 39.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2389, allocations: 0 / 436.7 MB, free: 39.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2389, allocations: 0 / 436.7 MB, free: 39.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.2389, allocations: 0 / 436.7 MB, free: 39.14 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.0003436/0.2392, allocations: 361.9 kB / 437 MB, free: 38.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.953e-05/0.2393, allocations: 12.09 kB / 437 MB, free: 38.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.995e-05/0.2393, allocations: 7.75 kB / 437.1 MB, free: 38.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.185e-05/0.2394, allocations: 174.6 kB / 437.2 MB, free: 38.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.2394, allocations: 7.547 kB / 437.2 MB, free: 38.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.2394, allocations: 4.281 kB / 437.2 MB, free: 38.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.241e-05/0.2395, allocations: 52.27 kB / 437.3 MB, free: 38.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.2395, allocations: 4.172 kB / 437.3 MB, free: 38.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-06/0.2395, allocations: 3.938 kB / 437.3 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.2395, allocations: 3.688 kB / 437.3 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.759e-05/0.2396, allocations: 10.12 kB / 437.3 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002976/0.2399, allocations: 284.1 kB / 437.6 MB, free: 38.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001503/0.24, allocations: 51.67 kB / 437.6 MB, free: 38.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.775e-05/0.2401, allocations: 16.52 kB / 437.7 MB, free: 38.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.257e-06/0.2401, allocations: 2.5 kB / 437.7 MB, free: 38.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.082e-05/0.2401, allocations: 34.56 kB / 437.7 MB, free: 38.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.2401, allocations: 0 / 437.7 MB, free: 38.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001436/0.2403, allocations: 68.3 kB / 437.8 MB, free: 38.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.06e-05/0.2403, allocations: 53.97 kB / 437.8 MB, free: 38.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.261e-05/0.2403, allocations: 124.3 kB / 437.9 MB, free: 37.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.693e-06/0.2404, allocations: 25.7 kB / 438 MB, free: 37.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.775e-05/0.2404, allocations: 90.8 kB / 438 MB, free: 37.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.169e-05/0.2404, allocations: 21.67 kB / 438.1 MB, free: 37.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.86e-05/0.2404, allocations: 18.38 kB / 438.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.783e-05/0.2405, allocations: 322.1 kB / 438.4 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.137e-05/0.2405, allocations: 8.25 kB / 438.4 MB, free: 37.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.63e-05/0.2405, allocations: 25.28 kB / 438.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.2408, allocations: 75.39 kB / 438.5 MB, free: 37.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2408, allocations: 4 kB / 438.5 MB, free: 37.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.139e-05/0.2409, allocations: 82.23 kB / 438.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.558e-06/0.2409, allocations: 5.281 kB / 438.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.2409, allocations: 0 / 438.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.2409, allocations: 0 / 438.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.709e-05/0.241, allocations: 22.27 kB / 438.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.241, allocations: 3.062 kB / 438.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.113e-05/0.2411, allocations: 6.625 kB / 438.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.2411, allocations: 0 / 438.6 MB, free: 37.3 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.0001025/0.2412, allocations: 120.8 kB / 438.7 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.325e-05/0.2412, allocations: 6.562 kB / 438.7 MB, free: 37.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.252e-05/0.2413, allocations: 14.14 kB / 438.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.2413, allocations: 64 / 438.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2413, allocations: 4 kB / 438.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.2413, allocations: 2.469 kB / 438.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001073/0.2414, allocations: 172.3 kB / 438.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2414, allocations: 0 / 438.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.419e-05/0.2415, allocations: 19.7 kB / 439 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.2415, allocations: 0 / 439 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.2415, allocations: 2.719 kB / 439 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.2415, allocations: 0 / 439 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2415, allocations: 0 / 439 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.2417, allocations: 172.5 kB / 439.1 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.813e-05/0.2417, allocations: 81.11 kB / 439.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.2417, allocations: 2.875 kB / 439.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.713e-05/0.2418, allocations: 7.531 kB / 439.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.149e-05/0.2418, allocations: 3.938 kB / 439.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/0.2418, allocations: 2.781 kB / 439.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.271e-05/0.2418, allocations: 95.45 kB / 439.3 MB, free: 36.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2418, allocations: 0 / 439.3 MB, free: 36.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002075/0.242, allocations: 13.38 kB / 439.3 MB, free: 36.61 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 5.307e-05/0.2421, allocations: 98.98 kB / 439.4 MB, free: 36.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.434e-05/0.2422, allocations: 42.62 kB / 439.5 MB, free: 36.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2422, allocations: 0 / 439.5 MB, free: 36.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.765e-05/0.2422, allocations: 9.375 kB / 439.5 MB, free: 36.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.2424, allocations: 11.88 kB / 439.5 MB, free: 36.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002433/0.2427, allocations: 201.9 kB / 439.7 MB, free: 36.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.912e-05/0.2428, allocations: 0.6905 MB / 440.4 MB, free: 35.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.658e-05/0.2428, allocations: 9.969 kB / 440.4 MB, free: 35.61 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2428, allocations: 0 / 440.4 MB, free: 35.61 MB / 350.1 MB Notification: Performance of Templates: time 0.001513/0.2444, allocations: 0.7284 MB / 441.1 MB, free: 35.57 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)