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.001098/0.001098, allocations: 76.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.001013/0.001013, allocations: 173.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.9107/0.9107, allocations: 177.1 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.06108/0.06108, allocations: 18.13 MB / 278.1 MB, free: 11.54 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 415 MB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.892e-05/2.043e-05, allocations: 2.281 kB / 415.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001256/0.001277, allocations: 0.5681 MB / 415.6 MB, free: 12.42 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001357/0.001412, allocations: 27.45 kB / 415.6 MB, free: 12.4 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.744e-05/0.00144, allocations: 0 / 415.6 MB, free: 12.4 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.724e-05/0.001457, allocations: 3.938 kB / 415.6 MB, free: 12.4 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.682e-05/0.001524, allocations: 6.297 kB / 415.7 MB, free: 12.39 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.956e-05/0.001623, allocations: 13.25 kB / 415.7 MB, free: 12.39 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 5.809e-05/0.001681, allocations: 34.55 kB / 415.7 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.934e-05/0.001731, allocations: 2.594 kB / 415.7 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.184e-05/0.001753, allocations: 13.23 kB / 415.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.092e-05/0.001833, allocations: 15.34 kB / 415.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.236e-05/0.001856, allocations: 1.375 kB / 415.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.118e-06/0.001865, allocations: 2.75 kB / 415.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.871e-05/0.001884, allocations: 11.14 kB / 415.7 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 2.402e-05/0.001908, allocations: 8.281 kB / 415.8 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 7.005e-05/0.001978, allocations: 23.06 kB / 415.8 MB, free: 12.35 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.00198, allocations: 3.938 kB / 415.8 MB, free: 12.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.001981, allocations: 0 / 415.8 MB, free: 12.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.001985, allocations: 0 / 415.8 MB, free: 12.34 MB / 330.7 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.0002944/0.002279, allocations: 280.6 kB / 416.1 MB, free: 12.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001164/0.002396, allocations: 11.36 kB / 416.1 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.554e-05/0.002441, allocations: 40.95 kB / 416.1 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.924e-05/0.002471, allocations: 7.641 kB / 416.1 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.279e-05/0.002543, allocations: 126.4 kB / 416.2 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.002557, allocations: 2.688 kB / 416.2 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.442e-05/0.002581, allocations: 1.75 kB / 416.2 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001063/0.002688, allocations: 50.42 kB / 416.3 MB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.002695, allocations: 192 / 416.3 MB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.002703, allocations: 6.5 kB / 416.3 MB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.002709, allocations: 4.125 kB / 416.3 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.901e-05/0.002748, allocations: 15.5 kB / 416.3 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003376/0.003086, allocations: 240.6 kB / 416.6 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001676/0.003253, allocations: 49.55 kB / 416.6 MB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.53e-05/0.003279, allocations: 14.28 kB / 416.6 MB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-06/0.003287, allocations: 1.281 kB / 416.6 MB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.378e-05/0.0033, allocations: 36.44 kB / 416.7 MB, free: 11.49 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.354e-06/0.003303, allocations: 0 / 416.7 MB, free: 11.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001692/0.003472, allocations: 70.75 kB / 416.7 MB, free: 11.44 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/0.003496, allocations: 53.23 kB / 416.8 MB, free: 11.38 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.456e-05/0.00357, allocations: 119.9 kB / 416.9 MB, free: 11.27 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.492e-06/0.003577, allocations: 26.83 kB / 416.9 MB, free: 11.24 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.385e-05/0.003611, allocations: 96.22 kB / 417 MB, free: 11.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.168e-05/0.003622, allocations: 16.36 kB / 417 MB, free: 11.13 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.035e-05/0.003653, allocations: 22.97 kB / 417 MB, free: 11.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.646e-05/0.003689, allocations: 315.9 kB / 417.4 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.192e-05/0.003711, allocations: 10.3 kB / 417.4 MB, free: 10.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.84e-05/0.003739, allocations: 29.09 kB / 417.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.003933, allocations: 77.84 kB / 417.5 MB, free: 10.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.003935, allocations: 3.938 kB / 417.5 MB, free: 10.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 8.194e-05/0.004017, allocations: 74.36 kB / 417.5 MB, free: 10.68 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.00403, allocations: 5.422 kB / 417.6 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.004036, allocations: 1.531 kB / 417.6 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.004048, allocations: 0 / 417.6 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.845e-05/0.004107, allocations: 23.09 kB / 417.6 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.004113, allocations: 2.438 kB / 417.6 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.04e-05/0.004143, allocations: 13.7 kB / 417.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.004152, allocations: 3.281 kB / 417.6 MB, free: 10.66 MB / 330.7 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.0001425/0.004294, allocations: 114.6 kB / 417.7 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.545e-05/0.00431, allocations: 11.41 kB / 417.7 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.006e-05/0.00433, allocations: 13.58 kB / 417.7 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.004332, allocations: 0.6562 kB / 417.7 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.004337, allocations: 1.562 kB / 417.7 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.004341, allocations: 0.6562 kB / 417.7 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.399e-05/0.004435, allocations: 144.6 kB / 417.9 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.004436, allocations: 3.938 kB / 417.9 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.084e-05/0.004497, allocations: 14.73 kB / 417.9 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.004499, allocations: 0.75 kB / 417.9 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.004507, allocations: 1.438 kB / 417.9 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.004509, allocations: 0 / 417.9 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.004511, allocations: 8.609 kB / 417.9 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001263/0.004638, allocations: 164.5 kB / 418.1 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.197e-05/0.00465, allocations: 7.094 kB / 418.1 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.097e-05/0.004661, allocations: 1.5 kB / 418.1 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.134e-05/0.004692, allocations: 5.531 kB / 418.1 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.325e-05/0.004705, allocations: 2.859 kB / 418.1 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/0.004708, allocations: 4 kB / 418.1 MB, free: 10.19 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.67e-05/0.004735, allocations: 94.8 kB / 418.2 MB, free: 10.11 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004735, allocations: 0 / 418.2 MB, free: 10.11 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001438/0.004879, allocations: 9.234 kB / 418.2 MB, free: 10.11 MB / 330.7 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.0001948/0.005073, allocations: 0.7038 MB / 418.9 MB, free: 9.426 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.837e-05/0.005172, allocations: 30.45 kB / 418.9 MB, free: 9.418 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.005174, allocations: 3.938 kB / 418.9 MB, free: 9.414 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.801e-05/0.005192, allocations: 22.72 kB / 418.9 MB, free: 9.402 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001613/0.005353, allocations: 1.438 kB / 418.9 MB, free: 9.402 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006391/0.005992, allocations: 1.348 MB / 420.3 MB, free: 8.148 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.111e-05/0.006033, allocations: 69.16 kB / 420.4 MB, free: 8.078 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 1.978e-05/0.006053, allocations: 2.734 kB / 420.4 MB, free: 8.078 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.518e-05/0.006088, allocations: 19.95 kB / 420.4 MB, free: 8.059 MB / 330.7 MB Notification: Performance of SimCode: time 4.71e-07/0.006089, allocations: 0 / 420.4 MB, free: 8.059 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01627/0.02236, allocations: 2.111 MB / 422.5 MB, free: 7.16 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.928/6.95, allocations: 9.156 kB / 422.5 MB, free: 7.156 MB / 330.7 MB " [Timeout remaining time 653] (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: 9.31912179198116] Failed to read output from testmodel.py, exit status != 0: 7.032564556226134 7.043912747 7.039941992 Calling exit ...