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.001449/0.001449, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001668/0.001668, allocations: 219.3 kB / 23.03 MB, free: 4.922 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.472/1.472, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1032/0.1032, allocations: 22.94 MB / 336.1 MB, free: 12.41 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="cs",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="cs",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.002134/0.002134, allocations: 67.89 kB / 469.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3915/0.3936, allocations: 59.28 MB / 0.5167 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002624/0.3963, allocations: 1.634 MB / 0.5183 GB, free: 8.172 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000781/0.397, allocations: 473.5 kB / 0.5188 GB, free: 7.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.854e-05/0.3971, allocations: 5.281 kB / 0.5188 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.31e-05/0.3972, allocations: 11.16 kB / 0.5188 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001833/0.3973, allocations: 34.41 kB / 0.5188 GB, free: 7.938 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.241e-05/0.3974, allocations: 25.8 kB / 0.5188 GB, free: 7.926 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001801/0.3976, allocations: 123.1 kB / 0.5189 GB, free: 7.867 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.3977, allocations: 25.16 kB / 0.519 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.3979, allocations: 58.03 kB / 0.519 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.946e-05/0.398, allocations: 54.36 kB / 0.5191 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.274e-05/0.398, allocations: 8.688 kB / 0.5191 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.138e-05/0.398, allocations: 9.281 kB / 0.5191 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.441e-05/0.398, allocations: 23.34 kB / 0.5191 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.727e-05/0.3981, allocations: 47.39 kB / 0.5192 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001461/0.3982, allocations: 102.3 kB / 0.5193 GB, free: 7.715 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.3982, allocations: 0 / 0.5193 GB, free: 7.715 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.3982, allocations: 4 kB / 0.5193 GB, free: 7.711 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.849e-06/0.3983, allocations: 0 / 0.5193 GB, free: 7.711 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.0005326/0.3988, allocations: 352.7 kB / 0.5196 GB, free: 7.398 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.3988, allocations: 10.3 kB / 0.5196 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.975e-05/0.3989, allocations: 2.562 kB / 0.5196 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.454e-05/0.3989, allocations: 49.17 kB / 0.5197 GB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.109e-05/0.3989, allocations: 11.48 kB / 0.5197 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002238/0.3992, allocations: 158.3 kB / 0.5198 GB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.3992, allocations: 7.562 kB / 0.5198 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.051e-05/0.3992, allocations: 14.98 kB / 0.5198 GB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001562/0.3994, allocations: 85.83 kB / 0.5199 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.3994, allocations: 2.344 kB / 0.5199 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.3994, allocations: 4.969 kB / 0.5199 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.3994, allocations: 2.344 kB / 0.5199 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.579e-05/0.3995, allocations: 44.72 kB / 0.52 GB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005727/0.4001, allocations: 353.9 kB / 0.5203 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002124/0.4003, allocations: 94.5 kB / 0.5204 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.629e-05/0.4003, allocations: 48.98 kB / 0.5204 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.458e-05/0.4004, allocations: 1.844 kB / 0.5205 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.293e-05/0.4004, allocations: 33.25 kB / 0.5205 GB, free: 6.703 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.273e-06/0.4004, allocations: 3.938 kB / 0.5205 GB, free: 6.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008084/0.4012, allocations: 426.1 kB / 0.5209 GB, free: 6.414 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.025e-05/0.4012, allocations: 54.28 kB / 0.5209 GB, free: 6.352 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.4013, allocations: 164.3 kB / 0.5211 GB, free: 6.227 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.4013, allocations: 27.89 kB / 0.5211 GB, free: 6.195 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.625e-05/0.4014, allocations: 108 kB / 0.5212 GB, free: 6.094 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.286e-05/0.4014, allocations: 59.16 kB / 0.5213 GB, free: 6.047 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.882e-05/0.4015, allocations: 36.28 kB / 0.5213 GB, free: 6.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.313e-05/0.4015, allocations: 327.3 kB / 0.5216 GB, free: 5.699 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.31e-05/0.4016, allocations: 35 kB / 0.5217 GB, free: 5.688 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.548e-05/0.4017, allocations: 67.72 kB / 0.5217 GB, free: 5.645 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004731/0.4021, allocations: 191.6 kB / 0.5219 GB, free: 5.562 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.4021, allocations: 0 / 0.5219 GB, free: 5.562 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.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 matching and sorting (n=21) (initialization): time 0.000443/0.4026, allocations: 221.1 kB / 0.5221 GB, free: 5.438 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.4026, allocations: 5.312 kB / 0.5221 GB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.4026, allocations: 3.359 kB / 0.5221 GB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001737/0.4028, allocations: 52.52 kB / 0.5222 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.4029, allocations: 30.89 kB / 0.5222 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/0.4046, allocations: 4.428 MB / 0.5265 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.182e-05/0.4047, allocations: 2.828 kB / 0.5265 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.4047, allocations: 7.531 kB / 0.5265 GB, free: 0.9219 MB / 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 (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 9.899e-05/0.4048, allocations: 131.6 kB / 0.5267 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.67e-05/0.4049, allocations: 13.62 kB / 0.5267 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.549e-05/0.4049, allocations: 16.86 kB / 0.5267 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.4049, allocations: 6.25 kB / 0.5267 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.4049, allocations: 0.5625 kB / 0.5267 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.4049, allocations: 3.391 kB / 0.5267 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005193/0.4054, allocations: 447.5 kB / 0.5271 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.4054, allocations: 4.719 kB / 0.5271 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.4055, allocations: 23.06 kB / 0.5272 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001304/0.4057, allocations: 37.05 kB / 0.5272 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.4057, allocations: 7.016 kB / 0.5272 GB, free: 396 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001269/0.407, allocations: 1.502 MB / 0.5287 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.407, allocations: 0 / 0.5287 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004335/0.4074, allocations: 303.5 kB / 0.529 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.219e-05/0.4074, allocations: 13.7 kB / 0.529 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.961e-05/0.4074, allocations: 10.94 kB / 0.529 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.4076, allocations: 5.938 kB / 0.529 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.032e-05/0.4076, allocations: 13.88 kB / 0.529 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/0.4076, allocations: 5.312 kB / 0.529 GB, free: 14.67 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000116/0.4077, allocations: 117.2 kB / 0.5291 GB, free: 14.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4077, allocations: 4.094 kB / 0.5291 GB, free: 14.58 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004178/0.4081, allocations: 34.94 kB / 0.5292 GB, free: 14.57 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 (12): * Single equations (assignments): 11 * 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.0008477/0.409, allocations: 0.8344 MB / 0.53 GB, free: 13.83 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006476/0.4096, allocations: 326.9 kB / 0.5303 GB, free: 13.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.4096, allocations: 4 kB / 0.5303 GB, free: 13.56 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003166/0.41, allocations: 176.6 kB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003733/0.4103, allocations: 22.72 kB / 0.5305 GB, free: 13.41 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.003797/0.4141, allocations: 2.192 MB / 0.5326 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/0.4143, allocations: 101.8 kB / 0.5327 GB, free: 11.63 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.647e-05/0.4143, allocations: 18.31 kB / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.54e-05/0.4144, allocations: 38.88 kB / 0.5328 GB, free: 11.6 MB / 398.1 MB Notification: Performance of SimCode: time 9.31e-07/0.4144, allocations: 0 / 0.5328 GB, free: 11.6 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03238/0.4468, allocations: 3.681 MB / 0.5364 GB, free: 10.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.72/14.16, allocations: 3.406 kB / 0.5364 GB, free: 10.98 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P_fmu --startTime=0 --stopTime=1 --stepSize=0.002 --timeout=50 --tolerance=1e-06 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: 17.01537947996985] Failed to read output from testmodel.py, exit status != 0: 14.345996129908599 14.375252834 13.97161613 Calling exit ...