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.001146/0.001146, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.325/1.325, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2039/0.2039, allocations: 22.35 MB / 312.7 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002432/0.002432, allocations: 59.91 kB / 380.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3256, allocations: 54.93 MB / 435.9 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001724/0.3274, allocations: 0.5653 MB / 436.4 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001498/0.3276, allocations: 31.77 kB / 436.5 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.876e-05/0.3276, allocations: 0 / 436.5 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.559e-05/0.3276, allocations: 6.719 kB / 436.5 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.63e-05/0.3277, allocations: 7.938 kB / 436.5 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001131/0.3278, allocations: 10.73 kB / 436.5 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.913e-05/0.3279, allocations: 30.48 kB / 436.5 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.339e-05/0.328, allocations: 2.875 kB / 436.5 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.91e-05/0.328, allocations: 18.22 kB / 436.5 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.692e-05/0.3281, allocations: 23.73 kB / 436.6 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.669e-05/0.3281, allocations: 2.156 kB / 436.6 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.198e-05/0.3281, allocations: 6.25 kB / 436.6 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.683e-05/0.3281, allocations: 7.125 kB / 436.6 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.503e-05/0.3282, allocations: 18.8 kB / 436.6 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.311e-05/0.3283, allocations: 29.08 kB / 436.6 MB, free: 39.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3283, allocations: 6.812 kB / 436.6 MB, free: 39.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3283, allocations: 0 / 436.6 MB, free: 39.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.3283, allocations: 0 / 436.6 MB, free: 39.23 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.0004082/0.3287, allocations: 350 kB / 437 MB, free: 38.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.3287, allocations: 10.72 kB / 437 MB, free: 38.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.631e-05/0.3288, allocations: 34.08 kB / 437 MB, free: 38.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.594e-05/0.3288, allocations: 7.594 kB / 437 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.237e-05/0.3289, allocations: 171 kB / 437.2 MB, free: 38.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.3289, allocations: 10.77 kB / 437.2 MB, free: 38.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.329, allocations: 2.75 kB / 437.2 MB, free: 38.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.3291, allocations: 55.75 kB / 437.3 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.3291, allocations: 7.875 kB / 437.3 MB, free: 38.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.3291, allocations: 0 / 437.3 MB, free: 38.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.3291, allocations: 0 / 437.3 MB, free: 38.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.791e-05/0.3292, allocations: 18.34 kB / 437.3 MB, free: 38.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003578/0.3295, allocations: 278.9 kB / 437.6 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001767/0.3297, allocations: 51.06 kB / 437.6 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.918e-05/0.3298, allocations: 14.2 kB / 437.6 MB, free: 38.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.3298, allocations: 3.844 kB / 437.6 MB, free: 38.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.475e-05/0.3298, allocations: 33.98 kB / 437.7 MB, free: 38.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.242e-06/0.3298, allocations: 0 / 437.7 MB, free: 38.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001734/0.33, allocations: 68.94 kB / 437.7 MB, free: 38.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.199e-05/0.33, allocations: 51.41 kB / 437.8 MB, free: 38.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.443e-05/0.3301, allocations: 121.9 kB / 437.9 MB, free: 37.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.995e-06/0.3301, allocations: 25.7 kB / 437.9 MB, free: 37.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.565e-05/0.3301, allocations: 93.86 kB / 438 MB, free: 37.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.288e-05/0.3302, allocations: 14.69 kB / 438 MB, free: 37.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/0.3302, allocations: 19.72 kB / 438 MB, free: 37.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.029e-05/0.3303, allocations: 325.2 kB / 438.4 MB, free: 37.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.476e-05/0.3303, allocations: 16.98 kB / 438.4 MB, free: 37.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.902e-05/0.3303, allocations: 22.03 kB / 438.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.3306, allocations: 69.33 kB / 438.5 MB, free: 37.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3306, allocations: 0 / 438.5 MB, free: 37.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001004/0.3307, allocations: 82.03 kB / 438.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.3307, allocations: 9.469 kB / 438.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.3307, allocations: 0 / 438.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.3308, allocations: 0 / 438.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.052e-05/0.3309, allocations: 20.02 kB / 438.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.3309, allocations: 0 / 438.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.781e-05/0.3309, allocations: 3 kB / 438.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.3309, allocations: 3.219 kB / 438.6 MB, free: 37.37 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.0001623/0.3311, allocations: 139.5 kB / 438.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.633e-05/0.3311, allocations: 10.61 kB / 438.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.584e-05/0.3312, allocations: 11.84 kB / 438.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.3312, allocations: 3.812 kB / 438.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3312, allocations: 0 / 438.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3312, allocations: 0 / 438.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.3313, allocations: 172.7 kB / 438.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3313, allocations: 0 / 438.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.51e-05/0.3314, allocations: 17.55 kB / 438.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3314, allocations: 0 / 438.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.056e-06/0.3315, allocations: 4 kB / 438.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3315, allocations: 0 / 438.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3315, allocations: 0 / 438.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001378/0.3316, allocations: 171.5 kB / 439.1 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.301e-05/0.3316, allocations: 87.77 kB / 439.2 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.3317, allocations: 0 / 439.2 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.364e-05/0.3317, allocations: 2.562 kB / 439.2 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.838e-05/0.3317, allocations: 3.469 kB / 439.2 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.3318, allocations: 10.62 kB / 439.2 MB, free: 36.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.531e-05/0.3318, allocations: 93.61 kB / 439.3 MB, free: 36.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3318, allocations: 0 / 439.3 MB, free: 36.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002206/0.332, allocations: 5.75 kB / 439.3 MB, free: 36.67 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.000252/0.3323, allocations: 0.6943 MB / 440 MB, free: 36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001046/0.3324, allocations: 40.77 kB / 440 MB, free: 35.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3324, allocations: 0 / 440 MB, free: 35.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.086e-05/0.3324, allocations: 11.62 kB / 440.1 MB, free: 35.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002094/0.3327, allocations: 16.5 kB / 440.1 MB, free: 35.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000845/0.3335, allocations: 1.348 MB / 441.4 MB, free: 34.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001177/0.3336, allocations: 0.686 MB / 442.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.818e-05/0.3337, allocations: 9.703 kB / 442.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.842e-05/0.3337, allocations: 17.94 kB / 442.1 MB, free: 34 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3337, allocations: 3.938 kB / 442.1 MB, free: 34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01957/0.3533, allocations: 1.424 MB / 443.6 MB, free: 33.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.619/7.972, allocations: 10.52 kB / 443.6 MB, free: 33.64 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Modelling_principles.M2_PhasorDomain_res.csv --start-time 0 --stop-time 864000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 21.4925 AES_AES_Coursework_Modelling_principles_M2_PhasorDomain.fmu > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1)