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.001696/0.001696, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.002024/0.002024, allocations: 206.3 kB / 23.01 MB, free: 4.625 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.508/1.508, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.1107/0.1107, allocations: 24.04 MB / 337.2 MB, free: 11.32 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.002397/0.002397, allocations: 67.91 kB / 473.8 MB, free: 6.383 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.361, allocations: 59.58 MB / 0.5209 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001628/0.3626, allocations: 0.5585 MB / 0.5215 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001629/0.3628, allocations: 23.41 kB / 0.5215 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.03e-05/0.3628, allocations: 0.9375 kB / 0.5215 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.384e-05/0.3628, allocations: 3.938 kB / 0.5215 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.076e-05/0.3629, allocations: 6.125 kB / 0.5215 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001316/0.3631, allocations: 21.41 kB / 0.5215 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.972e-05/0.3631, allocations: 32.44 kB / 0.5215 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.789e-05/0.3632, allocations: 3.203 kB / 0.5215 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.26e-05/0.3632, allocations: 13.7 kB / 0.5216 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.572e-05/0.3633, allocations: 22.69 kB / 0.5216 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.064e-05/0.3633, allocations: 2 kB / 0.5216 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.264e-05/0.3633, allocations: 2.156 kB / 0.5216 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.011e-05/0.3634, allocations: 7.219 kB / 0.5216 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.524e-05/0.3634, allocations: 12.75 kB / 0.5216 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.381e-05/0.3635, allocations: 31.52 kB / 0.5216 GB, free: 9.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.3635, allocations: 1.094 kB / 0.5216 GB, free: 9.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.3635, allocations: 0 / 0.5216 GB, free: 9.688 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.3635, allocations: 0 / 0.5216 GB, free: 9.688 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.0004344/0.3639, allocations: 285.6 kB / 0.5219 GB, free: 9.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.364, allocations: 10.69 kB / 0.5219 GB, free: 9.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.184e-05/0.364, allocations: 32.34 kB / 0.5219 GB, free: 9.371 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.968e-05/0.364, allocations: 8.359 kB / 0.5219 GB, free: 9.367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.596e-05/0.3641, allocations: 111.2 kB / 0.5221 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.3641, allocations: 10.75 kB / 0.5221 GB, free: 9.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.3642, allocations: 3.422 kB / 0.5221 GB, free: 9.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001172/0.3643, allocations: 49.86 kB / 0.5221 GB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.3643, allocations: 3.938 kB / 0.5221 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.3643, allocations: 5.031 kB / 0.5221 GB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.3643, allocations: 0.7969 kB / 0.5221 GB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.559e-05/0.3643, allocations: 19.25 kB / 0.5221 GB, free: 9.176 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003729/0.3647, allocations: 240.3 kB / 0.5224 GB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.3649, allocations: 48.77 kB / 0.5224 GB, free: 8.898 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.527e-05/0.365, allocations: 22.94 kB / 0.5224 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.017e-05/0.365, allocations: 1.125 kB / 0.5224 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.407e-05/0.365, allocations: 32.28 kB / 0.5225 GB, free: 8.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.163e-06/0.365, allocations: 1.156 kB / 0.5225 GB, free: 8.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001856/0.3652, allocations: 62.92 kB / 0.5225 GB, free: 8.797 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.671e-05/0.3652, allocations: 51.41 kB / 0.5226 GB, free: 8.734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.772e-05/0.3653, allocations: 125.1 kB / 0.5227 GB, free: 8.625 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.845e-06/0.3653, allocations: 29.7 kB / 0.5227 GB, free: 8.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.23e-05/0.3653, allocations: 93.52 kB / 0.5228 GB, free: 8.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.341e-05/0.3653, allocations: 15.45 kB / 0.5228 GB, free: 8.488 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.488e-05/0.3654, allocations: 19.67 kB / 0.5229 GB, free: 8.469 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.786e-05/0.3654, allocations: 331.7 kB / 0.5232 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.954e-05/0.3655, allocations: 14.98 kB / 0.5232 GB, free: 8.133 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.459e-05/0.3655, allocations: 28.95 kB / 0.5232 GB, free: 8.109 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.3658, allocations: 67.69 kB / 0.5233 GB, free: 8.078 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3658, allocations: 0 / 0.5233 GB, free: 8.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001211/0.3659, allocations: 70.33 kB / 0.5233 GB, free: 8.035 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.3659, allocations: 5.359 kB / 0.5233 GB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.3659, allocations: 4.031 kB / 0.5234 GB, free: 8.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.3659, allocations: 1.984 kB / 0.5234 GB, free: 8.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.366, allocations: 21.73 kB / 0.5234 GB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.3661, allocations: 6.062 kB / 0.5234 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.272e-05/0.3661, allocations: 10.39 kB / 0.5234 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.3661, allocations: 1.312 kB / 0.5234 GB, free: 8.016 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.0001764/0.3663, allocations: 127.1 kB / 0.5235 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.683e-05/0.3663, allocations: 6.484 kB / 0.5235 GB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.57e-05/0.3664, allocations: 14.64 kB / 0.5235 GB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3664, allocations: 1.375 kB / 0.5235 GB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.3664, allocations: 0.7969 kB / 0.5235 GB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.3664, allocations: 0 / 0.5235 GB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001398/0.3665, allocations: 140 kB / 0.5237 GB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3665, allocations: 0 / 0.5237 GB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.916e-05/0.3666, allocations: 18.88 kB / 0.5237 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3666, allocations: 1.094 kB / 0.5237 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.3666, allocations: 1.125 kB / 0.5237 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3666, allocations: 0.7969 kB / 0.5237 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3666, allocations: 0 / 0.5237 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001577/0.3668, allocations: 175.9 kB / 0.5239 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.376e-05/0.3668, allocations: 2.953 kB / 0.5239 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.3668, allocations: 1.922 kB / 0.5239 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.454e-05/0.3669, allocations: 1.062 kB / 0.5239 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.425e-05/0.3669, allocations: 2.625 kB / 0.5239 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.3669, allocations: 1.094 kB / 0.5239 GB, free: 7.543 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.283e-05/0.3669, allocations: 102.4 kB / 0.524 GB, free: 7.457 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3669, allocations: 0 / 0.524 GB, free: 7.457 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002217/0.3672, allocations: 11.38 kB / 0.524 GB, free: 7.453 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.0003354/0.3675, allocations: 0.7046 MB / 0.5247 GB, free: 6.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001199/0.3676, allocations: 35.72 kB / 0.5247 GB, free: 6.758 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3676, allocations: 0 / 0.5247 GB, free: 6.758 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.459e-05/0.3677, allocations: 13.59 kB / 0.5247 GB, free: 6.754 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002152/0.3679, allocations: 5.406 kB / 0.5247 GB, free: 6.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.3689, allocations: 1.361 MB / 0.526 GB, free: 5.488 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.11e-05/0.369, allocations: 70.31 kB / 0.5261 GB, free: 5.418 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.076e-05/0.369, allocations: 7.406 kB / 0.5261 GB, free: 5.414 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.233e-05/0.3691, allocations: 18.42 kB / 0.5261 GB, free: 5.402 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3691, allocations: 0 / 0.5261 GB, free: 5.402 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02893/0.398, allocations: 1.971 MB / 0.5281 GB, free: 4.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.84, allocations: 10.2 kB / 0.5281 GB, free: 4.586 MB / 382.1 MB " [Timeout remaining time 648] (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: 15.024072621017694] Failed to read output from testmodel.py, exit status != 0: 11.946795773692429 11.971607757 11.602902858 Calling exit ...