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.0009748/0.0009748, allocations: 98.11 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.00817/0.00817, allocations: 169.4 kB / 16.26 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.378/1.378, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.205/0.205, allocations: 22.34 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003702/0.0003702, allocations: 11.98 kB / 382.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3115, allocations: 55.98 MB / 438.7 MB, free: 39.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.0005536/0.3121, allocations: 300.4 kB / 439 MB, free: 39.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001283/0.3123, allocations: 28.28 kB / 439 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.337e-05/0.3123, allocations: 0 / 439 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.302e-05/0.3123, allocations: 3.938 kB / 439 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.848e-05/0.3124, allocations: 4 kB / 439 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.03e-05/0.3125, allocations: 14.33 kB / 439 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.081e-05/0.3125, allocations: 28.8 kB / 439.1 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.562e-05/0.3126, allocations: 9.812 kB / 439.1 MB, free: 39.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.372e-05/0.3126, allocations: 16.34 kB / 439.1 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.573e-05/0.3127, allocations: 17.7 kB / 439.1 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.736e-05/0.3127, allocations: 2.875 kB / 439.1 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.072e-05/0.3127, allocations: 2.844 kB / 439.1 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.554e-05/0.3128, allocations: 7.938 kB / 439.1 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.056e-05/0.3128, allocations: 47.88 kB / 439.2 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.84e-05/0.3128, allocations: 27.27 kB / 439.2 MB, free: 39.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3129, allocations: 0 / 439.2 MB, free: 39.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3129, allocations: 0 / 439.2 MB, free: 39.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.297e-06/0.3129, allocations: 0 / 439.2 MB, free: 39.11 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.0003195/0.3132, allocations: 349 kB / 439.5 MB, free: 38.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.3132, allocations: 15.09 kB / 439.5 MB, free: 38.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.705e-05/0.3133, allocations: 38.08 kB / 439.6 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.255e-05/0.3133, allocations: 3.938 kB / 439.6 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.416e-05/0.3134, allocations: 171.2 kB / 439.7 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.3134, allocations: 3 kB / 439.7 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.825e-05/0.3134, allocations: 3.688 kB / 439.8 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.3135, allocations: 60.36 kB / 439.8 MB, free: 38.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.3135, allocations: 3.938 kB / 439.8 MB, free: 38.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.3136, allocations: 3.844 kB / 439.8 MB, free: 38.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3136, allocations: 0 / 439.8 MB, free: 38.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.356e-05/0.3136, allocations: 15 kB / 439.8 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000322/0.3139, allocations: 279.3 kB / 440.1 MB, free: 38.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001537/0.3141, allocations: 55.41 kB / 440.2 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.993e-05/0.3141, allocations: 17.66 kB / 440.2 MB, free: 38.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.504e-06/0.3142, allocations: 0 / 440.2 MB, free: 38.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.426e-05/0.3142, allocations: 36.67 kB / 440.2 MB, free: 38.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.3142, allocations: 4 kB / 440.2 MB, free: 38.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001532/0.3143, allocations: 58.84 kB / 440.3 MB, free: 38.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.217e-05/0.3144, allocations: 54.34 kB / 440.3 MB, free: 37.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.807e-05/0.3144, allocations: 119.7 kB / 440.4 MB, free: 37.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.456e-06/0.3145, allocations: 25.7 kB / 440.5 MB, free: 37.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.59e-05/0.3145, allocations: 102.2 kB / 440.6 MB, free: 37.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.205e-05/0.3145, allocations: 18.56 kB / 440.6 MB, free: 37.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.196e-05/0.3146, allocations: 19.97 kB / 440.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.715e-05/0.3146, allocations: 322.8 kB / 440.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.312e-05/0.3146, allocations: 8.984 kB / 440.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.795e-05/0.3147, allocations: 30.88 kB / 441 MB, free: 37.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002391/0.3149, allocations: 73.3 kB / 441 MB, free: 37.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3149, allocations: 0 / 441 MB, free: 37.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.792e-05/0.315, allocations: 71 kB / 441.1 MB, free: 37.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/0.315, allocations: 5.812 kB / 441.1 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.315, allocations: 0 / 441.1 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.3151, allocations: 2.938 kB / 441.1 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.188e-05/0.3152, allocations: 17.38 kB / 441.1 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.3152, allocations: 2.781 kB / 441.1 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.173e-05/0.3152, allocations: 10.66 kB / 441.1 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.022e-06/0.3152, allocations: 3.938 kB / 441.1 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.0001229/0.3154, allocations: 123.9 kB / 441.3 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.488e-05/0.3154, allocations: 10.53 kB / 441.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.224e-05/0.3154, allocations: 6.781 kB / 441.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.3154, allocations: 0 / 441.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3154, allocations: 0 / 441.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.3154, allocations: 2.719 kB / 441.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.3156, allocations: 177.3 kB / 441.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3156, allocations: 0 / 441.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.761e-05/0.3157, allocations: 15.12 kB / 441.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3157, allocations: 7.031 kB / 441.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.3157, allocations: 0 / 441.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3157, allocations: 0 / 441.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3157, allocations: 0 / 441.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000127/0.3158, allocations: 172.8 kB / 441.6 MB, free: 36.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.871e-05/0.3159, allocations: 81.02 kB / 441.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.3159, allocations: 3.297 kB / 441.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.233e-05/0.3159, allocations: 0 / 441.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.679e-05/0.316, allocations: 7.391 kB / 441.7 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.316, allocations: 6.984 kB / 441.7 MB, free: 36.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.343e-05/0.316, allocations: 94.06 kB / 441.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.316, allocations: 0 / 441.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002127/0.3162, allocations: 12.75 kB / 441.8 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 0.0002503/0.3165, allocations: 0.7013 MB / 442.6 MB, free: 35.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.867e-05/0.3166, allocations: 32.14 kB / 442.6 MB, free: 35.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3166, allocations: 2.75 kB / 442.6 MB, free: 35.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.039e-05/0.3166, allocations: 15.12 kB / 442.6 MB, free: 35.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.3168, allocations: 7.875 kB / 442.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008229/0.3177, allocations: 1.364 MB / 444 MB, free: 34.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/0.3178, allocations: 0.6854 MB / 444.7 MB, free: 33.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.725e-05/0.3178, allocations: 2.5 kB / 444.7 MB, free: 33.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.993e-05/0.3179, allocations: 17.33 kB / 444.7 MB, free: 33.87 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3179, allocations: 0 / 444.7 MB, free: 33.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01602/0.3339, allocations: 1.256 MB / 445.9 MB, free: 33.71 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001382/0.3341, allocations: 186 kB / 446.1 MB, free: 33.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/2.087, allocations: 0 / 446.1 MB, free: 33.46 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/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)