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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00267/0.00267, allocations: 215.2 kB / 22.25 MB, free: 5.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.514/1.514, allocations: 230.6 MB / 256 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1042/0.1042, allocations: 24.13 MB / 336.6 MB, free: 11.45 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 67.91 kB / 473.3 MB, free: 6.402 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3776/0.3796, allocations: 59.6 MB / 0.5204 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001706/0.3813, allocations: 0.5739 MB / 0.521 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001167/0.3814, allocations: 28.16 kB / 0.521 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.015e-05/0.3815, allocations: 3.938 kB / 0.521 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.068e-05/0.3815, allocations: 3.938 kB / 0.521 GB, free: 9.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.245e-05/0.3815, allocations: 7 kB / 0.521 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.288e-05/0.3816, allocations: 17.19 kB / 0.521 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.853e-05/0.3817, allocations: 27.67 kB / 0.5211 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.179e-05/0.3817, allocations: 4.031 kB / 0.5211 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.588e-05/0.3817, allocations: 17.34 kB / 0.5211 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.851e-05/0.3818, allocations: 23.3 kB / 0.5211 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.217e-05/0.3818, allocations: 1.281 kB / 0.5211 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.494e-06/0.3818, allocations: 1.5 kB / 0.5211 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.403e-05/0.3818, allocations: 7.531 kB / 0.5211 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.368e-05/0.3819, allocations: 17.8 kB / 0.5211 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 5.761e-05/0.3819, allocations: 18.95 kB / 0.5211 GB, free: 9.672 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.3819, allocations: 4 kB / 0.5211 GB, free: 9.668 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.3819, allocations: 5.281 kB / 0.5211 GB, free: 9.664 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.3819, allocations: 0 / 0.5211 GB, free: 9.664 MB / 382.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.0003398/0.3823, allocations: 280.7 kB / 0.5214 GB, free: 9.391 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.3823, allocations: 11.23 kB / 0.5214 GB, free: 9.391 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.671e-05/0.3823, allocations: 36.62 kB / 0.5215 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.003e-05/0.3823, allocations: 7.359 kB / 0.5215 GB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.328e-05/0.3824, allocations: 120.2 kB / 0.5216 GB, free: 9.207 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.3824, allocations: 6.469 kB / 0.5216 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.3824, allocations: 6.469 kB / 0.5216 GB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001037/0.3825, allocations: 46.56 kB / 0.5216 GB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.345e-06/0.3826, allocations: 7.875 kB / 0.5216 GB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.214e-06/0.3826, allocations: 0 / 0.5216 GB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.745e-06/0.3826, allocations: 1.438 kB / 0.5216 GB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.235e-05/0.3826, allocations: 19.38 kB / 0.5217 GB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003204/0.3829, allocations: 246.3 kB / 0.5219 GB, free: 8.898 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.3831, allocations: 52.67 kB / 0.522 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.901e-05/0.3831, allocations: 14.7 kB / 0.522 GB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.374e-06/0.3831, allocations: 1.219 kB / 0.522 GB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.697e-05/0.3831, allocations: 32.33 kB / 0.522 GB, free: 8.812 MB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.3831, allocations: 0 / 0.522 GB, free: 8.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.000151/0.3833, allocations: 63.44 kB / 0.5221 GB, free: 8.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.695e-05/0.3833, allocations: 59.34 kB / 0.5221 GB, free: 8.699 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.918e-05/0.3834, allocations: 121 kB / 0.5222 GB, free: 8.594 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.143e-06/0.3834, allocations: 25.7 kB / 0.5223 GB, free: 8.562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.402e-05/0.3834, allocations: 96.66 kB / 0.5223 GB, free: 8.469 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.246e-05/0.3834, allocations: 15.53 kB / 0.5224 GB, free: 8.457 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.12e-05/0.3835, allocations: 23.97 kB / 0.5224 GB, free: 8.434 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.656e-05/0.3835, allocations: 323.3 kB / 0.5227 GB, free: 8.113 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.461e-05/0.3835, allocations: 6.906 kB / 0.5227 GB, free: 8.113 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.123e-05/0.3836, allocations: 27.8 kB / 0.5227 GB, free: 8.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000255/0.3838, allocations: 76.58 kB / 0.5228 GB, free: 8.051 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.3838, allocations: 3.938 kB / 0.5228 GB, free: 8.047 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001003/0.3839, allocations: 72.69 kB / 0.5229 GB, free: 8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.3839, allocations: 10.05 kB / 0.5229 GB, free: 7.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.3839, allocations: 0.8125 kB / 0.5229 GB, free: 7.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.3839, allocations: 1.719 kB / 0.5229 GB, free: 7.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.503e-05/0.384, allocations: 25.81 kB / 0.5229 GB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.384, allocations: 1.344 kB / 0.5229 GB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.381e-05/0.3841, allocations: 19.11 kB / 0.5229 GB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.451e-06/0.3841, allocations: 1.219 kB / 0.5229 GB, free: 7.973 MB / 382.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.000122/0.3842, allocations: 118.8 kB / 0.523 GB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.652e-05/0.3843, allocations: 7.375 kB / 0.5231 GB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.102e-05/0.3843, allocations: 9.969 kB / 0.5231 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3843, allocations: 0.7031 kB / 0.5231 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.3843, allocations: 1.375 kB / 0.5231 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.3843, allocations: 0 / 0.5231 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.3844, allocations: 141 kB / 0.5232 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.3844, allocations: 1.5 kB / 0.5232 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.3845, allocations: 13.81 kB / 0.5232 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.3845, allocations: 1.906 kB / 0.5232 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-06/0.3845, allocations: 0 / 0.5232 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3845, allocations: 5.094 kB / 0.5232 GB, free: 7.668 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3845, allocations: 4.594 kB / 0.5232 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001407/0.3847, allocations: 175.1 kB / 0.5234 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.213e-05/0.3847, allocations: 3 kB / 0.5234 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.3847, allocations: 1.125 kB / 0.5234 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.649e-05/0.3848, allocations: 1.891 kB / 0.5234 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.234e-05/0.3848, allocations: 1.359 kB / 0.5234 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-06/0.3848, allocations: 5.25 kB / 0.5234 GB, free: 7.504 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.048e-05/0.3848, allocations: 98.62 kB / 0.5235 GB, free: 7.422 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3848, allocations: 0 / 0.5235 GB, free: 7.422 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002149/0.385, allocations: 12.19 kB / 0.5235 GB, free: 7.418 MB / 382.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.0002689/0.3853, allocations: 0.699 MB / 0.5242 GB, free: 6.738 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.346e-05/0.3854, allocations: 38.44 kB / 0.5242 GB, free: 6.723 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.3854, allocations: 0 / 0.5242 GB, free: 6.723 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.309e-05/0.3854, allocations: 21.73 kB / 0.5242 GB, free: 6.711 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001989/0.3856, allocations: 4.281 kB / 0.5243 GB, free: 6.711 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008735/0.3865, allocations: 1.358 MB / 0.5256 GB, free: 5.445 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001214/0.3866, allocations: 0.6865 MB / 0.5262 GB, free: 4.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.312e-05/0.3866, allocations: 6.688 kB / 0.5263 GB, free: 4.746 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.468e-05/0.3867, allocations: 19.45 kB / 0.5263 GB, free: 4.734 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3867, allocations: 0 / 0.5263 GB, free: 4.734 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03353/0.4202, allocations: 1.615 MB / 0.5278 GB, free: 4.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.19, allocations: 1 kB / 0.5279 GB, free: 4.34 MB / 382.1 MB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.543983723000565] Failed to read output from testmodel.py, exit status != 0: 11.297886314998323 11.312000155 10.926998334 Calling exit ...