Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M1_TimeDomain.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.M1_TimeDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M1_TimeDomain") translateModel(AES.Coursework.Modelling_principles.M1_TimeDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M1_TimeDomain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008521/0.0008525, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.00565/0.00565, allocations: 170 kB / 16.27 MB, free: 6.652 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.503/1.503, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2335/0.2335, allocations: 22.35 MB / 313.8 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003916/0.0003917, allocations: 11.98 kB / 382.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.345, allocations: 55.97 MB / 438.6 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.0006715/0.3457, allocations: 321.6 kB / 438.9 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001997/0.3459, allocations: 66.67 kB / 438.9 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.648e-05/0.346, allocations: 4 kB / 438.9 MB, free: 39.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.667e-05/0.346, allocations: 7.875 kB / 439 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.095e-05/0.3461, allocations: 6.625 kB / 439 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001262/0.3462, allocations: 9.938 kB / 439 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.06e-05/0.3463, allocations: 37.03 kB / 439 MB, free: 39.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.59e-05/0.3463, allocations: 6.688 kB / 439 MB, free: 39.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.88e-05/0.3464, allocations: 25.86 kB / 439 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.093e-05/0.3465, allocations: 24.83 kB / 439.1 MB, free: 39.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.596e-05/0.3465, allocations: 3.969 kB / 439.1 MB, free: 39.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.187e-06/0.3465, allocations: 7.094 kB / 439.1 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.696e-05/0.3465, allocations: 11.22 kB / 439.1 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.279e-05/0.3466, allocations: 49.98 kB / 439.1 MB, free: 38.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.631e-05/0.3466, allocations: 30.88 kB / 439.2 MB, free: 38.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.3466, allocations: 0 / 439.2 MB, free: 38.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3466, allocations: 0 / 439.2 MB, free: 38.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.3466, allocations: 2.938 kB / 439.2 MB, free: 38.95 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000349/0.347, allocations: 365.9 kB / 439.5 MB, free: 38.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.3471, allocations: 13.56 kB / 439.5 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.241e-05/0.3471, allocations: 9.781 kB / 439.5 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.979e-05/0.3472, allocations: 174.1 kB / 439.7 MB, free: 38.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.3472, allocations: 3.188 kB / 439.7 MB, free: 38.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.471e-05/0.3472, allocations: 8 kB / 439.7 MB, free: 38.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.3474, allocations: 60.2 kB / 439.8 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.3474, allocations: 0 / 439.8 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.3474, allocations: 7.5 kB / 439.8 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.3474, allocations: 0 / 439.8 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.221e-05/0.3475, allocations: 43.45 kB / 439.8 MB, free: 38.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003357/0.3478, allocations: 296.9 kB / 440.1 MB, free: 38.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002321/0.3481, allocations: 93.97 kB / 440.2 MB, free: 37.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.218e-05/0.3481, allocations: 37.53 kB / 440.3 MB, free: 37.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.3482, allocations: 4.125 kB / 440.3 MB, free: 37.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.546e-05/0.3482, allocations: 37.34 kB / 440.3 MB, free: 37.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.3482, allocations: 0 / 440.3 MB, free: 37.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002162/0.3484, allocations: 104.1 kB / 440.4 MB, free: 37.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.411e-05/0.3484, allocations: 54.31 kB / 440.4 MB, free: 37.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.97e-05/0.3485, allocations: 128.8 kB / 440.6 MB, free: 37.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.027e-06/0.3485, allocations: 25.7 kB / 440.6 MB, free: 37.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.48e-05/0.3486, allocations: 94.14 kB / 440.7 MB, free: 37.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.002e-05/0.3486, allocations: 33.81 kB / 440.7 MB, free: 37.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.268e-05/0.3486, allocations: 20.75 kB / 440.7 MB, free: 37.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.897e-05/0.3487, allocations: 324.9 kB / 441.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.398e-05/0.3487, allocations: 24.16 kB / 441.1 MB, free: 37.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.024e-05/0.3488, allocations: 30.14 kB / 441.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003448/0.3491, allocations: 130.2 kB / 441.2 MB, free: 37.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3491, allocations: 0 / 441.2 MB, free: 37.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000138/0.3493, allocations: 106.5 kB / 441.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.3493, allocations: 5.125 kB / 441.4 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3493, allocations: 0 / 441.4 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.3493, allocations: 9.922 kB / 441.4 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.3494, allocations: 34.86 kB / 441.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.3495, allocations: 2.906 kB / 441.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.768e-05/0.3495, allocations: 3.906 kB / 441.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.3495, allocations: 7.281 kB / 441.4 MB, free: 37 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: I:VARIABLE(start = 0.0 fixed = true ) type: Real 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 (14): * Single equations (assignments): 14 * 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.0001196/0.3496, allocations: 125.3 kB / 441.5 MB, free: 36.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.653e-05/0.3497, allocations: 12.59 kB / 441.5 MB, free: 36.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001516/0.3498, allocations: 106.3 kB / 441.6 MB, free: 36.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.3498, allocations: 2.969 kB / 441.7 MB, free: 36.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3498, allocations: 4 kB / 441.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3499, allocations: 0 / 441.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001331/0.35, allocations: 193.3 kB / 441.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.35, allocations: 0 / 441.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.3502, allocations: 33.5 kB / 441.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3502, allocations: 3.344 kB / 441.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.3502, allocations: 0 / 441.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.3502, allocations: 0 / 441.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3502, allocations: 0 / 441.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001983/0.3504, allocations: 228.4 kB / 442.1 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.26e-05/0.3504, allocations: 81.02 kB / 442.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.3504, allocations: 6.562 kB / 442.2 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.389e-05/0.3505, allocations: 3.375 kB / 442.2 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.516e-05/0.3505, allocations: 2.781 kB / 442.2 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.3505, allocations: 2.75 kB / 442.2 MB, free: 36.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.953e-05/0.3506, allocations: 97.22 kB / 442.3 MB, free: 36.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3506, allocations: 0 / 442.3 MB, free: 36.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002143/0.3508, allocations: 15.38 kB / 442.3 MB, free: 36.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (I,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 (11): * Single equations (assignments): 11 * 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.887e-05/0.3509, allocations: 108.3 kB / 442.4 MB, free: 36.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000124/0.351, allocations: 65.88 kB / 442.5 MB, free: 36.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.351, allocations: 3.938 kB / 442.5 MB, free: 36.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.11e-05/0.3511, allocations: 32.92 kB / 442.5 MB, free: 36.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002092/0.3513, allocations: 4 kB / 442.5 MB, free: 36.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00039/0.3517, allocations: 257.3 kB / 442.8 MB, free: 35.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.3518, allocations: 0.6919 MB / 443.5 MB, free: 35.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.338e-05/0.3518, allocations: 6.672 kB / 443.5 MB, free: 35.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.742e-05/0.3519, allocations: 14.41 kB / 443.5 MB, free: 35.2 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3519, allocations: 4 kB / 443.5 MB, free: 35.19 MB / 350.1 MB Notification: Performance of Templates: time 0.002401/0.3543, allocations: 0.5132 MB / 444 MB, free: 35.13 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Modelling_principles.M1_TimeDomain.makefile (rm -f AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M1_TimeDomain.sim & ./AES_AES.Coursework.Modelling_principles.M1_TimeDomain -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe 2>&1)