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.000956/0.0009559, allocations: 99.86 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.0009522/0.0009521, 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.241/1.241, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1943/0.1943, allocations: 22.35 MB / 313.3 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003961/0.0003961, allocations: 12 kB / 381.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3096, allocations: 55.97 MB / 437.9 MB, free: 39.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.0005251/0.3102, allocations: 290.5 kB / 438.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001146/0.3103, allocations: 28.97 kB / 438.2 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.063e-05/0.3103, allocations: 0 / 438.2 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.208e-05/0.3104, allocations: 3.938 kB / 438.2 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.039e-05/0.3104, allocations: 6.219 kB / 438.2 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.699e-05/0.3105, allocations: 11.17 kB / 438.2 MB, free: 39.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.273e-05/0.3105, allocations: 17.2 kB / 438.2 MB, free: 39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.897e-05/0.3106, allocations: 6.938 kB / 438.2 MB, free: 39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.253e-05/0.3106, allocations: 12.91 kB / 438.3 MB, free: 39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.739e-05/0.3107, allocations: 21.52 kB / 438.3 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.3107, allocations: 3.031 kB / 438.3 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.338e-06/0.3107, allocations: 3.688 kB / 438.3 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.032e-05/0.3107, allocations: 7.172 kB / 438.3 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.752e-05/0.3107, allocations: 33.67 kB / 438.3 MB, free: 38.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 2.753e-05/0.3108, allocations: 9.562 kB / 438.3 MB, free: 38.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.3108, allocations: 0 / 438.3 MB, free: 38.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3108, allocations: 0 / 438.3 MB, free: 38.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.046e-06/0.3108, allocations: 4 kB / 438.3 MB, free: 38.94 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.0002748/0.3111, allocations: 354.4 kB / 438.7 MB, free: 38.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.885e-05/0.3111, allocations: 10.91 kB / 438.7 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.518e-05/0.3111, allocations: 37.78 kB / 438.7 MB, free: 38.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.75e-05/0.3112, allocations: 2.719 kB / 438.7 MB, free: 38.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.443e-05/0.3112, allocations: 172.4 kB / 438.9 MB, free: 38.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.496e-06/0.3113, allocations: 4 kB / 438.9 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.415e-05/0.3113, allocations: 14.62 kB / 438.9 MB, free: 38.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.637e-05/0.3114, allocations: 44.81 kB / 439 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.3114, allocations: 3.953 kB / 439 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.625e-06/0.3114, allocations: 6.812 kB / 439 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3114, allocations: 0 / 439 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.852e-05/0.3114, allocations: 20 kB / 439 MB, free: 38.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002995/0.3117, allocations: 268.4 kB / 439.3 MB, free: 37.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001438/0.3119, allocations: 56.27 kB / 439.3 MB, free: 37.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.783e-06/0.3119, allocations: 0 / 439.3 MB, free: 37.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.489e-05/0.3119, allocations: 33.34 kB / 439.3 MB, free: 37.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 7.62e-07/0.3119, allocations: 0 / 439.3 MB, free: 37.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001448/0.3121, allocations: 70.69 kB / 439.4 MB, free: 37.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.014e-05/0.3121, allocations: 54.22 kB / 439.5 MB, free: 37.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.555e-05/0.3122, allocations: 125.4 kB / 439.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.694e-06/0.3122, allocations: 33.64 kB / 439.6 MB, free: 37.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.892e-05/0.3122, allocations: 88.05 kB / 439.7 MB, free: 37.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.118e-05/0.3123, allocations: 18.27 kB / 439.7 MB, free: 37.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-06/0.3123, allocations: 0 / 439.7 MB, free: 37.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.422e-05/0.3123, allocations: 320 kB / 440 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.174e-05/0.3123, allocations: 13.45 kB / 440.1 MB, free: 37.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.461e-05/0.3124, allocations: 19.44 kB / 440.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.861e-05/0.3124, allocations: 23.75 kB / 440.1 MB, free: 37.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.3124, allocations: 0 / 440.1 MB, free: 37.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 8.925e-05/0.3125, allocations: 84.77 kB / 440.2 MB, free: 37.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.518e-06/0.3125, allocations: 5.562 kB / 440.2 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.3125, allocations: 0 / 440.2 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.856e-06/0.3126, allocations: 0 / 440.2 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.24e-05/0.3126, allocations: 16.81 kB / 440.2 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.3126, allocations: 3.938 kB / 440.2 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.541e-05/0.3127, allocations: 5.656 kB / 440.2 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.3127, allocations: 2.656 kB / 440.2 MB, free: 37.13 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.0001034/0.3128, allocations: 116.5 kB / 440.3 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.281e-05/0.3128, allocations: 10.33 kB / 440.3 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.288e-05/0.3129, allocations: 10.41 kB / 440.3 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3129, allocations: 3.469 kB / 440.3 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.3129, allocations: 0 / 440.3 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3129, allocations: 2.656 kB / 440.4 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001064/0.313, allocations: 164 kB / 440.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.313, allocations: 4 kB / 440.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.48e-05/0.3131, allocations: 13.28 kB / 440.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.3131, allocations: 0 / 440.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.3131, allocations: 10.14 kB / 440.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.3131, allocations: 3.938 kB / 440.5 MB, free: 36.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3131, allocations: 0 / 440.5 MB, free: 36.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001169/0.3133, allocations: 163.4 kB / 440.7 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.274e-05/0.3133, allocations: 87.2 kB / 440.8 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.3133, allocations: 8.125 kB / 440.8 MB, free: 36.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.075e-05/0.3134, allocations: 3.953 kB / 440.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.293e-05/0.3134, allocations: 7 kB / 440.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.3134, allocations: 3.938 kB / 440.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.135e-05/0.3134, allocations: 94.62 kB / 440.9 MB, free: 36.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3134, allocations: 0 / 440.9 MB, free: 36.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002017/0.3137, allocations: 6.062 kB / 440.9 MB, free: 36.44 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.0002331/0.3139, allocations: 0.6995 MB / 441.6 MB, free: 35.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.209e-05/0.314, allocations: 28.72 kB / 441.6 MB, free: 35.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.314, allocations: 4 kB / 441.6 MB, free: 35.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.755e-05/0.314, allocations: 12.62 kB / 441.7 MB, free: 35.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.3141, allocations: 14.89 kB / 441.7 MB, free: 35.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000552/0.3147, allocations: 0.6373 MB / 442.3 MB, free: 35.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.689e-05/0.3148, allocations: 0.6933 MB / 443 MB, free: 34.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.5e-05/0.3148, allocations: 4 kB / 443 MB, free: 34.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.495e-05/0.3149, allocations: 17.62 kB / 443 MB, free: 34.47 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3149, allocations: 0 / 443 MB, free: 34.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.098/1.412, allocations: 1.227 MB / 444.2 MB, free: 34.33 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001659/1.413, allocations: 171.4 kB / 444.4 MB, free: 34.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.448/2.861, allocations: 2.938 kB / 444.4 MB, free: 34.09 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: