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.001333/0.001333, allocations: 106.8 kB / 16.45 MB, free: 6.453 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.001499/0.001499, allocations: 213.7 kB / 19.43 MB, free: 3.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.568/1.568, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.1368/0.1368, allocations: 24.11 MB / 333 MB, free: 12.62 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.003219/0.003219, allocations: 67.88 kB / 467.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3684/0.3716, allocations: 59.58 MB / 0.5151 GB, free: 9.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.0017/0.3733, allocations: 0.5671 MB / 0.5156 GB, free: 9.367 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000154/0.3734, allocations: 31.67 kB / 0.5156 GB, free: 9.348 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.005e-05/0.3735, allocations: 0 / 0.5156 GB, free: 9.348 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.783e-05/0.3735, allocations: 3.938 kB / 0.5157 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.298e-05/0.3736, allocations: 9.938 kB / 0.5157 GB, free: 9.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001176/0.3737, allocations: 9.672 kB / 0.5157 GB, free: 9.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.128e-05/0.3738, allocations: 31.91 kB / 0.5157 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.402e-05/0.3738, allocations: 3.297 kB / 0.5157 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.544e-05/0.3738, allocations: 18.47 kB / 0.5157 GB, free: 9.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001081/0.374, allocations: 21.78 kB / 0.5157 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.374, allocations: 2.344 kB / 0.5157 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.969e-06/0.374, allocations: 1.344 kB / 0.5157 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.869e-05/0.374, allocations: 7.219 kB / 0.5158 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.749e-05/0.374, allocations: 13.88 kB / 0.5158 GB, free: 9.297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.197e-05/0.3741, allocations: 30.83 kB / 0.5158 GB, free: 9.285 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3741, allocations: 3.938 kB / 0.5158 GB, free: 9.281 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3741, allocations: 0 / 0.5158 GB, free: 9.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.3741, allocations: 0 / 0.5158 GB, free: 9.281 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.0003858/0.3745, allocations: 361.7 kB / 0.5161 GB, free: 8.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.3745, allocations: 10.31 kB / 0.5162 GB, free: 8.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.845e-05/0.3746, allocations: 37.34 kB / 0.5162 GB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.709e-05/0.3746, allocations: 8.078 kB / 0.5162 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.753e-05/0.3747, allocations: 177.1 kB / 0.5164 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.3747, allocations: 1.344 kB / 0.5164 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/0.3747, allocations: 3.156 kB / 0.5164 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00011/0.3748, allocations: 54.55 kB / 0.5164 GB, free: 8.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3748, allocations: 4.594 kB / 0.5164 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.3748, allocations: 4 kB / 0.5164 GB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.3748, allocations: 1.156 kB / 0.5164 GB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.909e-05/0.3749, allocations: 14.95 kB / 0.5164 GB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003434/0.3752, allocations: 270.7 kB / 0.5167 GB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001766/0.3754, allocations: 49.39 kB / 0.5168 GB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.476e-05/0.3754, allocations: 15.27 kB / 0.5168 GB, free: 8.277 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.969e-06/0.3754, allocations: 4.656 kB / 0.5168 GB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.245e-05/0.3755, allocations: 31.34 kB / 0.5168 GB, free: 8.234 MB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.031e-06/0.3755, allocations: 0.75 kB / 0.5168 GB, free: 8.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001831/0.3756, allocations: 71.02 kB / 0.5169 GB, free: 8.184 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.145e-05/0.3757, allocations: 52.11 kB / 0.5169 GB, free: 8.121 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.014e-05/0.3757, allocations: 120.4 kB / 0.517 GB, free: 8.016 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.574e-06/0.3758, allocations: 26.83 kB / 0.5171 GB, free: 7.984 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.512e-05/0.3758, allocations: 95.86 kB / 0.5171 GB, free: 7.891 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.326e-05/0.3758, allocations: 15.84 kB / 0.5172 GB, free: 7.879 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.357e-05/0.3758, allocations: 24.34 kB / 0.5172 GB, free: 7.855 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.373e-05/0.3759, allocations: 322.3 kB / 0.5175 GB, free: 7.535 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.923e-05/0.3759, allocations: 16.06 kB / 0.5175 GB, free: 7.527 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.6e-05/0.3759, allocations: 23.34 kB / 0.5175 GB, free: 7.508 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002775/0.3762, allocations: 76.55 kB / 0.5176 GB, free: 7.469 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3762, allocations: 3.938 kB / 0.5176 GB, free: 7.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001078/0.3763, allocations: 69.03 kB / 0.5177 GB, free: 7.422 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.3763, allocations: 5.953 kB / 0.5177 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.3763, allocations: 0 / 0.5177 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.3764, allocations: 1.844 kB / 0.5177 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.3765, allocations: 21.67 kB / 0.5177 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.3765, allocations: 1.938 kB / 0.5177 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.36e-05/0.3765, allocations: 11.03 kB / 0.5177 GB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.3765, allocations: 4.938 kB / 0.5177 GB, free: 7.406 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.0001144/0.3766, allocations: 119.4 kB / 0.5178 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.849e-05/0.3767, allocations: 10.42 kB / 0.5178 GB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.662e-05/0.3767, allocations: 10.5 kB / 0.5179 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.3767, allocations: 1.438 kB / 0.5179 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3767, allocations: 0.7031 kB / 0.5179 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3767, allocations: 1.266 kB / 0.5179 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001332/0.3768, allocations: 178.3 kB / 0.518 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3768, allocations: 0 / 0.518 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.3769, allocations: 15.14 kB / 0.518 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3769, allocations: 1.156 kB / 0.518 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.377, allocations: 0 / 0.518 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.377, allocations: 5.703 kB / 0.518 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.377, allocations: 0 / 0.518 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000138/0.3771, allocations: 171.8 kB / 0.5182 GB, free: 6.906 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.155e-05/0.3771, allocations: 83.16 kB / 0.5183 GB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.3771, allocations: 1.344 kB / 0.5183 GB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.707e-05/0.3772, allocations: 1.922 kB / 0.5183 GB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.849e-05/0.3772, allocations: 2.688 kB / 0.5183 GB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-06/0.3772, allocations: 4 kB / 0.5183 GB, free: 6.805 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.828e-05/0.3773, allocations: 94.52 kB / 0.5184 GB, free: 6.727 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3773, allocations: 0 / 0.5184 GB, free: 6.727 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002232/0.3775, allocations: 6.75 kB / 0.5184 GB, free: 6.727 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.000282/0.3778, allocations: 0.7054 MB / 0.5191 GB, free: 6.043 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001018/0.3779, allocations: 26.69 kB / 0.5191 GB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3779, allocations: 7.875 kB / 0.5191 GB, free: 6.031 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.252e-05/0.3779, allocations: 12.78 kB / 0.5191 GB, free: 6.027 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002101/0.3781, allocations: 5.547 kB / 0.5191 GB, free: 6.023 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009306/0.379, allocations: 1.369 MB / 0.5205 GB, free: 4.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001198/0.3792, allocations: 0.6849 MB / 0.5211 GB, free: 4.055 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.794e-05/0.3792, allocations: 4.234 kB / 0.5211 GB, free: 4.055 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.744e-05/0.3792, allocations: 14.16 kB / 0.5212 GB, free: 4.047 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3792, allocations: 0 / 0.5212 GB, free: 4.047 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02459/0.4038, allocations: 1.481 MB / 0.5226 GB, free: 3.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.086/8.489, allocations: 5.016 kB / 0.5226 GB, free: 3.656 MB / 382.1 MB " [Timeout remaining time 651] (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: 11.775018738117069] Failed to read output from testmodel.py, exit status != 0: 8.559350514085963 8.572300465 8.194948037 Calling exit ...