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: "" <> buildModelFMU(AES.Coursework.Modelling_principles.M2_PhasorDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M2_PhasorDomain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Modelling_principles.M2_PhasorDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M2_PhasorDomain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001635/0.001635, allocations: 172.7 kB / 15.95 MB, free: 208 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.451/1.451, allocations: 223.2 MB / 240 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2171/0.2171, allocations: 22.35 MB / 313.4 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003232/0.0003233, allocations: 11.98 kB / 382 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.2952, allocations: 55.99 MB / 438 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.0008181/0.2961, allocations: 282.5 kB / 438.3 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002063/0.2963, allocations: 33.12 kB / 438.3 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.241e-05/0.2964, allocations: 0 / 438.3 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.819e-05/0.2964, allocations: 3.938 kB / 438.3 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.999e-05/0.2965, allocations: 3.281 kB / 438.3 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001302/0.2966, allocations: 10.14 kB / 438.3 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.357e-05/0.2967, allocations: 24.12 kB / 438.4 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.157e-05/0.2968, allocations: 6.5 kB / 438.4 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.423e-05/0.2968, allocations: 19.31 kB / 438.4 MB, free: 39.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.1e-05/0.2969, allocations: 20.16 kB / 438.4 MB, free: 39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.97e-05/0.2969, allocations: 0 / 438.4 MB, free: 39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.289e-05/0.297, allocations: 3.031 kB / 438.4 MB, free: 39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.549e-05/0.297, allocations: 3.938 kB / 438.4 MB, free: 39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.87e-05/0.297, allocations: 33.67 kB / 438.5 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.899e-05/0.2971, allocations: 14.67 kB / 438.5 MB, free: 38.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.2971, allocations: 3.938 kB / 438.5 MB, free: 38.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.2971, allocations: 0 / 438.5 MB, free: 38.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.2971, allocations: 4 kB / 438.5 MB, free: 38.96 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.0003704/0.2975, allocations: 354.4 kB / 438.8 MB, free: 38.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.2975, allocations: 8.875 kB / 438.8 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.696e-05/0.2976, allocations: 33.34 kB / 438.9 MB, free: 38.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.95e-05/0.2976, allocations: 3 kB / 438.9 MB, free: 38.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.756e-05/0.2977, allocations: 177.1 kB / 439 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.2977, allocations: 4 kB / 439 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/0.2978, allocations: 6.938 kB / 439.1 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001208/0.2979, allocations: 41.98 kB / 439.1 MB, free: 38.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.2979, allocations: 6.859 kB / 439.1 MB, free: 38.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.2979, allocations: 4 kB / 439.1 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.2979, allocations: 0 / 439.1 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.864e-05/0.298, allocations: 16.02 kB / 439.1 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003895/0.2984, allocations: 269.2 kB / 439.4 MB, free: 38.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001693/0.2986, allocations: 58.84 kB / 439.4 MB, free: 37.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.34e-05/0.2986, allocations: 18 kB / 439.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.067e-06/0.2986, allocations: 0 / 439.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.721e-05/0.2986, allocations: 35.72 kB / 439.5 MB, free: 37.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.2987, allocations: 0 / 439.5 MB, free: 37.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001857/0.2988, allocations: 69.06 kB / 439.6 MB, free: 37.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.906e-05/0.2989, allocations: 58.53 kB / 439.6 MB, free: 37.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.844e-05/0.299, allocations: 126.5 kB / 439.7 MB, free: 37.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.238e-06/0.299, allocations: 29.7 kB / 439.8 MB, free: 37.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.127e-05/0.299, allocations: 91.38 kB / 439.9 MB, free: 37.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.328e-05/0.299, allocations: 18.02 kB / 439.9 MB, free: 37.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/0.2991, allocations: 0 / 439.9 MB, free: 37.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.68e-05/0.2991, allocations: 317.8 kB / 440.2 MB, free: 37.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.536e-05/0.2991, allocations: 14.56 kB / 440.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.175e-05/0.2992, allocations: 18.97 kB / 440.2 MB, free: 37.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.548e-05/0.2992, allocations: 20.09 kB / 440.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2992, allocations: 0 / 440.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001125/0.2994, allocations: 87.52 kB / 440.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.2994, allocations: 5.625 kB / 440.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.2994, allocations: 0 / 440.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.2994, allocations: 2.781 kB / 440.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.245e-05/0.2995, allocations: 13.81 kB / 440.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.2995, allocations: 9.516 kB / 440.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.809e-05/0.2996, allocations: 2.625 kB / 440.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.2996, allocations: 4.031 kB / 440.4 MB, free: 37.14 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.0001563/0.2998, allocations: 116.8 kB / 440.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.644e-05/0.2998, allocations: 10.8 kB / 440.5 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.78e-05/0.2998, allocations: 14.11 kB / 440.5 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2998, allocations: 0 / 440.5 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.2998, allocations: 0 / 440.5 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2998, allocations: 0 / 440.5 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.3, allocations: 171.7 kB / 440.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.3, allocations: 4.062 kB / 440.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.474e-05/0.3001, allocations: 15.16 kB / 440.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.3001, allocations: 3.953 kB / 440.7 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.769e-06/0.3001, allocations: 2.906 kB / 440.7 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.3001, allocations: 0 / 440.7 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3001, allocations: 0 / 440.7 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001532/0.3003, allocations: 166.7 kB / 440.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.913e-05/0.3003, allocations: 95.2 kB / 441 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.3004, allocations: 3.953 kB / 441 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.194e-05/0.3004, allocations: 0 / 441 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.909e-05/0.3004, allocations: 2.844 kB / 441 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.3005, allocations: 0 / 441 MB, free: 36.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.303e-05/0.3005, allocations: 97.91 kB / 441.1 MB, free: 36.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3005, allocations: 0 / 441.1 MB, free: 36.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.3007, allocations: 8.312 kB / 441.1 MB, free: 36.45 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 0.0003089/0.3011, allocations: 0.6923 MB / 441.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001051/0.3012, allocations: 30.97 kB / 441.8 MB, free: 35.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3012, allocations: 2.625 kB / 441.8 MB, free: 35.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.049e-05/0.3012, allocations: 10.03 kB / 441.8 MB, free: 35.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.3014, allocations: 14.8 kB / 441.8 MB, free: 35.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000671/0.3021, allocations: 0.4961 MB / 442.3 MB, free: 35.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.3023, allocations: 0.6833 MB / 443 MB, free: 34.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.176e-05/0.3023, allocations: 6.875 kB / 443 MB, free: 34.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.344e-05/0.3023, allocations: 18.58 kB / 443 MB, free: 34.64 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3024, allocations: 3.938 kB / 443 MB, free: 34.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01151/0.3139, allocations: 1.242 MB / 444.3 MB, free: 34.48 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000135/0.314, allocations: 174.2 kB / 444.4 MB, free: 34.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.629/1.943, allocations: 0 / 444.4 MB, free: 34.25 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Modelling_principles_M2_PhasorDomain_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Modelling_principles_M2_PhasorDomain.fmu > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1) Environment - environmentSimulation: