Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.foo.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.000775/0.000775, allocations: 76.5 kB / 19.95 MB, free: 4.617 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.0007923/0.0007923, allocations: 169.2 kB / 23.23 MB, free: 1.34 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.8749/0.8749, 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.06515/0.06515, allocations: 18.13 MB / 278.1 MB, free: 11.55 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.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 415 MB, free: 12.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.703e-05/1.852e-05, allocations: 2.281 kB / 415 MB, free: 12.71 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.001978/0.001996, allocations: 1.831 MB / 416.9 MB, free: 11.54 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006797/0.002676, allocations: 0.5247 MB / 417.4 MB, free: 11.19 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.183e-05/0.002748, allocations: 5.312 kB / 417.4 MB, free: 11.18 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002748/0.003023, allocations: 32.05 kB / 417.4 MB, free: 11.16 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.003152, allocations: 51.08 kB / 417.5 MB, free: 11.13 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001665/0.003319, allocations: 74.56 kB / 417.6 MB, free: 11.1 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001652/0.003484, allocations: 175.4 kB / 417.7 MB, free: 11.02 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.003597, allocations: 35.06 kB / 417.8 MB, free: 11 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001912/0.003788, allocations: 84.73 kB / 417.8 MB, free: 10.97 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.003913, allocations: 72.97 kB / 417.9 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.003939, allocations: 13.56 kB / 417.9 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.043e-05/0.00396, allocations: 14.34 kB / 417.9 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.401e-05/0.004014, allocations: 39.89 kB / 418 MB, free: 10.92 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.775e-05/0.004062, allocations: 43.48 kB / 418 MB, free: 10.9 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.004229, allocations: 147 kB / 418.2 MB, free: 10.85 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.004231, allocations: 0 / 418.2 MB, free: 10.85 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.004233, allocations: 0.5156 kB / 418.2 MB, free: 10.85 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.004239, allocations: 4 kB / 418.2 MB, free: 10.84 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0006352/0.004874, allocations: 425.5 kB / 418.6 MB, free: 10.51 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.004912, allocations: 10.95 kB / 418.6 MB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.211e-05/0.004944, allocations: 45.61 kB / 418.6 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.228e-05/0.004976, allocations: 25.09 kB / 418.7 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002493/0.005226, allocations: 192.7 kB / 418.9 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.00524, allocations: 5 kB / 418.9 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.479e-05/0.005265, allocations: 17.66 kB / 418.9 MB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001628/0.005428, allocations: 112.3 kB / 419 MB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.005437, allocations: 3.938 kB / 419 MB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.005448, allocations: 5.75 kB / 419 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.005455, allocations: 3.375 kB / 419 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001392/0.005594, allocations: 91.86 kB / 419.1 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005201/0.006114, allocations: 409.7 kB / 419.5 MB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.006385, allocations: 150.3 kB / 419.6 MB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.597e-05/0.006471, allocations: 57.41 kB / 419.7 MB, free: 9.785 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.488e-05/0.006486, allocations: 1.625 kB / 419.7 MB, free: 9.785 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.458e-05/0.0065, allocations: 37.92 kB / 419.7 MB, free: 9.742 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.462e-06/0.006502, allocations: 4 kB / 419.7 MB, free: 9.738 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007212/0.007223, allocations: 473.1 kB / 420.2 MB, free: 9.441 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.13e-05/0.007244, allocations: 57.25 kB / 420.3 MB, free: 9.375 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001947/0.007439, allocations: 201 kB / 420.5 MB, free: 9.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/0.00745, allocations: 31.67 kB / 420.5 MB, free: 9.215 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.816e-05/0.007498, allocations: 114.4 kB / 420.6 MB, free: 9.105 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.659e-05/0.007534, allocations: 64.16 kB / 420.7 MB, free: 9.055 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.706e-05/0.007581, allocations: 35.83 kB / 420.7 MB, free: 9.027 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.915e-05/0.007621, allocations: 323.9 kB / 421 MB, free: 8.711 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.942e-05/0.00769, allocations: 48.06 kB / 421.1 MB, free: 8.695 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.318e-05/0.007773, allocations: 67.22 kB / 421.1 MB, free: 8.66 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005163/0.008289, allocations: 272.1 kB / 421.4 MB, free: 8.559 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.008291, allocations: 0 / 421.4 MB, free: 8.559 MB / 330.7 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003949/0.008686, allocations: 238.3 kB / 421.6 MB, free: 8.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.008703, allocations: 4.438 kB / 421.6 MB, free: 8.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.008711, allocations: 1.797 kB / 421.6 MB, free: 8.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001453/0.008856, allocations: 52.06 kB / 421.7 MB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.008976, allocations: 32.91 kB / 421.7 MB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/0.01025, allocations: 4.431 MB / 426.1 MB, free: 3.918 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.52e-05/0.01034, allocations: 21 kB / 426.2 MB, free: 3.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.148e-06/0.01035, allocations: 3.125 kB / 426.2 MB, free: 3.91 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: Ge1.deltag:VARIABLE(unit = \"rad\" fixed = true ) \"generator angle wrt port\" 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 8.654e-05/0.01044, allocations: 134.1 kB / 426.3 MB, free: 3.781 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.333e-05/0.01046, allocations: 10.83 kB / 426.3 MB, free: 3.777 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.979e-05/0.01048, allocations: 21.34 kB / 426.3 MB, free: 3.762 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.01048, allocations: 3.047 kB / 426.3 MB, free: 3.762 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.01049, allocations: 0.9531 kB / 426.3 MB, free: 3.762 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.01049, allocations: 4.5 kB / 426.3 MB, free: 3.758 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004316/0.01092, allocations: 464.9 kB / 426.8 MB, free: 3.402 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.01092, allocations: 5.156 kB / 426.8 MB, free: 3.398 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.577e-05/0.01102, allocations: 28.77 kB / 426.8 MB, free: 3.395 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001047/0.01112, allocations: 38.86 kB / 426.9 MB, free: 3.379 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.01114, allocations: 3.125 kB / 426.9 MB, free: 3.379 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005969/0.01173, allocations: 1.511 MB / 428.4 MB, free: 1.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.01174, allocations: 2.359 kB / 428.4 MB, free: 1.91 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000314/0.01205, allocations: 341 kB / 428.7 MB, free: 1.691 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.977e-05/0.01207, allocations: 14.02 kB / 428.7 MB, free: 1.684 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.01208, allocations: 6.969 kB / 428.7 MB, free: 1.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.225e-05/0.01218, allocations: 12.45 kB / 428.7 MB, free: 1.68 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.582e-05/0.01222, allocations: 18.81 kB / 428.8 MB, free: 1.672 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.01223, allocations: 4.406 kB / 428.8 MB, free: 1.672 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001358/0.01237, allocations: 156.6 kB / 428.9 MB, free: 1.578 MB / 330.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01237, allocations: 0 / 428.9 MB, free: 1.578 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002637/0.01263, allocations: 33.62 kB / 428.9 MB, free: 1.574 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Ge1.thetap,Ge1.deltag,Ge1.wg,C.x_scaled[1]) * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003964/0.01303, allocations: 0.8644 MB / 429.8 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003306/0.01336, allocations: 359.7 kB / 430.2 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.01336, allocations: 0 / 430.2 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001432/0.0135, allocations: 184.9 kB / 430.3 MB, free: 424 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002137/0.01372, allocations: 23.56 kB / 430.4 MB, free: 412 kB / 330.7 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge1.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.01601, allocations: 2.253 MB / 432.6 MB, free: 14.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001224/0.01613, allocations: 117.2 kB / 432.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.987e-05/0.0162, allocations: 20.44 kB / 432.8 MB, free: 14.66 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.857e-05/0.01628, allocations: 44.5 kB / 432.8 MB, free: 14.62 MB / 346.7 MB Notification: Performance of SimCode: time 1.032e-06/0.01628, allocations: 4.469 kB / 432.8 MB, free: 14.62 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02252/0.03881, allocations: 4.483 MB / 437.3 MB, free: 13.52 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.956/7.994, allocations: 5.219 kB / 437.3 MB, free: 13.52 MB / 346.7 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.foo.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.foo.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ElecSys_case_studies.foo_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_ElecSys_case_studies_foo.fmu > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.002733577042818] Failed to read output from testmodel.py, exit status != 0: 8.085147820413113 8.097691412 8.091704767 Calling exit ...