Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.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.002121/0.002121, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002234/0.002234, allocations: 216.8 kB / 22.25 MB, free: 5.125 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.493/1.493, allocations: 230.6 MB / 256 MB, free: 7.977 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.1094/0.1094, allocations: 24.13 MB / 336.6 MB, free: 11.43 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.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P",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.003354/0.003354, allocations: 67.89 kB / 470.9 MB, free: 8.754 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3724/0.3758, allocations: 59.59 MB / 0.5181 GB, free: 8.926 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002781/0.3786, allocations: 1.71 MB / 0.5198 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008/0.3794, allocations: 0.4963 MB / 0.5202 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.431e-05/0.3795, allocations: 1.219 kB / 0.5202 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.632e-05/0.3795, allocations: 11.62 kB / 0.5203 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001896/0.3797, allocations: 34.36 kB / 0.5203 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.082e-05/0.3798, allocations: 31.34 kB / 0.5203 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000182/0.3799, allocations: 122.8 kB / 0.5204 GB, free: 7.406 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.3801, allocations: 20.89 kB / 0.5205 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.3802, allocations: 62.05 kB / 0.5205 GB, free: 7.359 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.3804, allocations: 51.02 kB / 0.5206 GB, free: 7.336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.142e-05/0.3804, allocations: 8.562 kB / 0.5206 GB, free: 7.336 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.067e-05/0.3804, allocations: 9.688 kB / 0.5206 GB, free: 7.336 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.402e-05/0.3804, allocations: 24.2 kB / 0.5206 GB, free: 7.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.26e-05/0.3805, allocations: 55.14 kB / 0.5207 GB, free: 7.285 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001569/0.3806, allocations: 103.5 kB / 0.5208 GB, free: 7.242 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3806, allocations: 4 kB / 0.5208 GB, free: 7.238 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3806, allocations: 1.438 kB / 0.5208 GB, free: 7.238 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.3806, allocations: 0 / 0.5208 GB, free: 7.238 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005305/0.3812, allocations: 347.1 kB / 0.5211 GB, free: 6.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.3812, allocations: 10.58 kB / 0.5211 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.052e-05/0.3813, allocations: 43.75 kB / 0.5211 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.814e-05/0.3813, allocations: 16.11 kB / 0.5212 GB, free: 6.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002357/0.3816, allocations: 157.9 kB / 0.5213 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.3816, allocations: 10.84 kB / 0.5213 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.426e-05/0.3816, allocations: 10.47 kB / 0.5213 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001645/0.3818, allocations: 84.08 kB / 0.5214 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.3818, allocations: 0.7031 kB / 0.5214 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.3818, allocations: 5.156 kB / 0.5214 GB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.3818, allocations: 5.344 kB / 0.5214 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.114e-05/0.3819, allocations: 42.33 kB / 0.5215 GB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005488/0.3824, allocations: 363.6 kB / 0.5218 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002798/0.3827, allocations: 97.25 kB / 0.5219 GB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.831e-05/0.3828, allocations: 41.42 kB / 0.5219 GB, free: 6.273 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.3828, allocations: 1.922 kB / 0.5219 GB, free: 6.273 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.287e-05/0.3828, allocations: 35.59 kB / 0.522 GB, free: 6.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.3828, allocations: 1.094 kB / 0.522 GB, free: 6.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007079/0.3835, allocations: 370.1 kB / 0.5223 GB, free: 5.965 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.124e-05/0.3835, allocations: 54.5 kB / 0.5224 GB, free: 5.902 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.3837, allocations: 160.1 kB / 0.5225 GB, free: 5.781 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.3837, allocations: 26.41 kB / 0.5226 GB, free: 5.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.548e-05/0.3837, allocations: 117.5 kB / 0.5227 GB, free: 5.641 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.197e-05/0.3837, allocations: 52.62 kB / 0.5227 GB, free: 5.598 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.642e-05/0.3838, allocations: 30.12 kB / 0.5228 GB, free: 5.574 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.587e-05/0.3838, allocations: 326.9 kB / 0.5231 GB, free: 5.254 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.714e-05/0.3839, allocations: 32.05 kB / 0.5231 GB, free: 5.242 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.53e-05/0.384, allocations: 54.42 kB / 0.5231 GB, free: 5.207 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004194/0.3844, allocations: 179 kB / 0.5233 GB, free: 5.121 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.3844, allocations: 0 / 0.5233 GB, free: 5.121 MB / 382.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ G.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004265/0.3848, allocations: 199.4 kB / 0.5235 GB, free: 5.008 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.3848, allocations: 10.38 kB / 0.5235 GB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.3848, allocations: 3.938 kB / 0.5235 GB, free: 5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001751/0.385, allocations: 52.11 kB / 0.5236 GB, free: 4.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.3851, allocations: 23.36 kB / 0.5236 GB, free: 4.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001626/0.3868, allocations: 4.435 MB / 0.5279 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.524e-05/0.3868, allocations: 9.203 kB / 0.5279 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.3869, allocations: 4.688 kB / 0.5279 GB, free: 488 kB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: G.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: 3 * 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 (14): * 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: 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 0.0001048/0.387, allocations: 133.1 kB / 0.5281 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.567e-05/0.387, allocations: 9.984 kB / 0.5281 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.624e-05/0.387, allocations: 16.7 kB / 0.5281 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.387, allocations: 1.156 kB / 0.5281 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.205e-06/0.387, allocations: 0 / 0.5281 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.387, allocations: 5.609 kB / 0.5281 GB, free: 336 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005227/0.3876, allocations: 427.4 kB / 0.5285 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3876, allocations: 0 / 0.5285 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.3877, allocations: 19.69 kB / 0.5285 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001463/0.3878, allocations: 40.12 kB / 0.5286 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.3878, allocations: 6.281 kB / 0.5286 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001311/0.3891, allocations: 1.516 MB / 0.53 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3891, allocations: 10 kB / 0.5301 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004595/0.3896, allocations: 283.1 kB / 0.5303 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.251e-05/0.3896, allocations: 9.516 kB / 0.5303 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/0.3897, allocations: 6.688 kB / 0.5303 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.3898, allocations: 2.109 kB / 0.5303 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.693e-05/0.3898, allocations: 16.17 kB / 0.5304 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.3898, allocations: 7.234 kB / 0.5304 GB, free: 14.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.3899, allocations: 118.2 kB / 0.5305 GB, free: 14.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3899, allocations: 0 / 0.5305 GB, free: 14.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004183/0.3903, allocations: 29.47 kB / 0.5305 GB, free: 14.14 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (G.thetap,G.deltag,G.wg,Gact.y) * 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 (9): * 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: 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.0007082/0.391, allocations: 0.8268 MB / 0.5313 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000496/0.3915, allocations: 314.4 kB / 0.5316 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.3915, allocations: 4.125 kB / 0.5316 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002003/0.3917, allocations: 160.7 kB / 0.5318 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.3921, allocations: 16.88 kB / 0.5318 GB, free: 12.98 MB / 398.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.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.002802/0.3949, allocations: 2.142 MB / 0.5339 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.3952, allocations: 0.7106 MB / 0.5346 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.736e-05/0.3953, allocations: 18.42 kB / 0.5346 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.924e-05/0.3954, allocations: 43.19 kB / 0.5346 GB, free: 10.55 MB / 398.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3954, allocations: 0 / 0.5346 GB, free: 10.55 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03543/0.4308, allocations: 3.524 MB / 0.5381 GB, free: 10.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.84, allocations: 15.67 kB / 0.5381 GB, free: 10.01 MB / 398.1 MB " [Timeout remaining time 646] (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.sim & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.68277222300094] Failed to read output from testmodel.py, exit status != 0: 13.962230594996072 13.988531912 13.6025481 Calling exit ...