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.001176/0.001176, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001221/0.001221, allocations: 193.5 kB / 16.14 MB, free: 6.691 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.206/1.206, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1815/0.1815, allocations: 22.35 MB / 312.3 MB, free: 12.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 67.88 kB / 380.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.217, allocations: 54.94 MB / 435.2 MB, free: 39.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001402/0.2185, allocations: 0.6213 MB / 435.8 MB, free: 39.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001159/0.2186, allocations: 28.94 kB / 435.8 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.977e-05/0.2186, allocations: 0 / 435.8 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.375e-05/0.2187, allocations: 3.938 kB / 435.8 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.321e-05/0.2187, allocations: 0 / 435.8 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.144e-05/0.2188, allocations: 14.09 kB / 435.8 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.3e-05/0.2188, allocations: 36.58 kB / 435.9 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.698e-05/0.2189, allocations: 5.625 kB / 435.9 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.942e-05/0.2189, allocations: 13.03 kB / 435.9 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.159e-05/0.219, allocations: 20.94 kB / 435.9 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.386e-05/0.219, allocations: 6.875 kB / 435.9 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.558e-06/0.219, allocations: 0 / 435.9 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.483e-05/0.219, allocations: 10.2 kB / 435.9 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.474e-05/0.2191, allocations: 18.14 kB / 435.9 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.566e-05/0.2191, allocations: 29.27 kB / 436 MB, free: 39.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.2191, allocations: 7.328 kB / 436 MB, free: 39.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.91e-07/0.2191, allocations: 0 / 436 MB, free: 39.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.956e-06/0.2191, allocations: 0 / 436 MB, free: 39.09 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.0003083/0.2194, allocations: 353.3 kB / 436.3 MB, free: 38.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.2195, allocations: 12.78 kB / 436.3 MB, free: 38.72 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.284e-05/0.2195, allocations: 34.75 kB / 436.4 MB, free: 38.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.166e-05/0.2195, allocations: 11.12 kB / 436.4 MB, free: 38.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.192e-05/0.2196, allocations: 167.1 kB / 436.5 MB, free: 38.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.676e-06/0.2196, allocations: 7.031 kB / 436.5 MB, free: 38.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.2196, allocations: 7.219 kB / 436.5 MB, free: 38.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.327e-05/0.2197, allocations: 55.23 kB / 436.6 MB, free: 38.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.2197, allocations: 3.938 kB / 436.6 MB, free: 38.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-06/0.2198, allocations: 0 / 436.6 MB, free: 38.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.2198, allocations: 3.984 kB / 436.6 MB, free: 38.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.852e-05/0.2198, allocations: 15.28 kB / 436.6 MB, free: 38.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003059/0.2201, allocations: 281.2 kB / 436.9 MB, free: 38.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/0.2203, allocations: 54.06 kB / 436.9 MB, free: 38.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.791e-05/0.2203, allocations: 17.95 kB / 437 MB, free: 38.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.464e-06/0.2203, allocations: 0 / 437 MB, free: 38.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.125e-05/0.2204, allocations: 37.19 kB / 437 MB, free: 38.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 8.32e-07/0.2204, allocations: 0 / 437 MB, free: 38.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001454/0.2205, allocations: 64.17 kB / 437.1 MB, free: 37.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.857e-05/0.2205, allocations: 55.41 kB / 437.1 MB, free: 37.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.7e-05/0.2206, allocations: 122 kB / 437.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.232e-06/0.2206, allocations: 25.7 kB / 437.3 MB, free: 37.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.877e-05/0.2206, allocations: 90.39 kB / 437.3 MB, free: 37.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.12e-05/0.2207, allocations: 22.25 kB / 437.4 MB, free: 37.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.907e-05/0.2207, allocations: 18.69 kB / 437.4 MB, free: 37.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.711e-05/0.2207, allocations: 320.4 kB / 437.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.312e-05/0.2208, allocations: 13.12 kB / 437.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.71e-05/0.2208, allocations: 30.11 kB / 437.7 MB, free: 37.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.221, allocations: 69.2 kB / 437.8 MB, free: 37.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.221, allocations: 0 / 437.8 MB, free: 37.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.38e-05/0.2211, allocations: 82.88 kB / 437.9 MB, free: 37.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.2212, allocations: 5.75 kB / 437.9 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.2212, allocations: 4.031 kB / 437.9 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.2212, allocations: 2.938 kB / 437.9 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.592e-05/0.2213, allocations: 18.25 kB / 437.9 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.2213, allocations: 0 / 437.9 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.995e-05/0.2213, allocations: 2.844 kB / 437.9 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.034e-06/0.2213, allocations: 3.781 kB / 437.9 MB, free: 37.22 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.000108/0.2215, allocations: 133.1 kB / 438.1 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.413e-05/0.2215, allocations: 7.906 kB / 438.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.137e-05/0.2215, allocations: 13.77 kB / 438.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.2215, allocations: 0 / 438.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2215, allocations: 2.688 kB / 438.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.2215, allocations: 0 / 438.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000108/0.2216, allocations: 172.6 kB / 438.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2217, allocations: 0 / 438.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.106e-05/0.2218, allocations: 16.86 kB / 438.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.2218, allocations: 0 / 438.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.2218, allocations: 0 / 438.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2218, allocations: 2.719 kB / 438.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.2218, allocations: 4 kB / 438.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001181/0.2219, allocations: 170.7 kB / 438.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.793e-05/0.2219, allocations: 84.98 kB / 438.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.2219, allocations: 0 / 438.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.286e-05/0.222, allocations: 4 kB / 438.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.203e-05/0.222, allocations: 3.328 kB / 438.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.222, allocations: 3.344 kB / 438.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.138e-05/0.2221, allocations: 99.02 kB / 438.6 MB, free: 36.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2221, allocations: 0 / 438.6 MB, free: 36.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002044/0.2223, allocations: 5.344 kB / 438.6 MB, free: 36.52 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.0002179/0.2225, allocations: 0.6954 MB / 439.3 MB, free: 35.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.539e-05/0.2226, allocations: 35.97 kB / 439.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2226, allocations: 6.719 kB / 439.4 MB, free: 35.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.734e-05/0.2226, allocations: 6.594 kB / 439.4 MB, free: 35.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001939/0.2228, allocations: 13.66 kB / 439.4 MB, free: 35.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007771/0.2236, allocations: 1.351 MB / 440.7 MB, free: 34.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.628e-05/0.2237, allocations: 0.6913 MB / 441.4 MB, free: 33.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.705e-05/0.2238, allocations: 6.25 kB / 441.4 MB, free: 33.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.471e-05/0.2238, allocations: 18.62 kB / 441.5 MB, free: 33.84 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2238, allocations: 0 / 441.5 MB, free: 33.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.008857/0.2327, allocations: 1.305 MB / 442.8 MB, free: 33.62 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001186/0.2328, allocations: 188.5 kB / 442.9 MB, free: 33.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.503/1.736, allocations: 0 / 442.9 MB, free: 33.37 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)