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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005042/0.005043, allocations: 101.6 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 187.7 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2273/0.2273, allocations: 22.35 MB / 312.9 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 75.36 kB / 434.5 MB, free: 35.27 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08666/0.08782, allocations: 54.95 MB / 489.4 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002066/0.08992, allocations: 1.69 MB / 491.1 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005339/0.09049, allocations: 451.1 kB / 491.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.705e-05/0.09056, allocations: 4 kB / 491.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.797e-05/0.09061, allocations: 15.8 kB / 491.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.0908, allocations: 35.7 kB / 491.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.905e-05/0.09087, allocations: 27.97 kB / 491.6 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001301/0.09101, allocations: 123.5 kB / 491.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.09112, allocations: 33.44 kB / 491.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.927e-05/0.09121, allocations: 47.84 kB / 491.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.36e-05/0.0913, allocations: 59.62 kB / 491.9 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.827e-05/0.09133, allocations: 8 kB / 491.9 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.46e-05/0.09135, allocations: 12 kB / 491.9 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.162e-05/0.09137, allocations: 19.92 kB / 491.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.143e-05/0.09142, allocations: 51.67 kB / 492 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001025/0.09152, allocations: 104.5 kB / 492.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.09153, allocations: 0 / 492.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.09154, allocations: 3.938 kB / 492.1 MB, free: 1.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.09155, allocations: 4 kB / 492.1 MB, free: 1.168 MB / 350.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.0004656/0.09202, allocations: 423 kB / 492.5 MB, free: 0.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/0.09206, allocations: 8.031 kB / 492.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.477e-05/0.09211, allocations: 46.73 kB / 492.5 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.015e-05/0.09214, allocations: 16.75 kB / 492.6 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.09234, allocations: 208.6 kB / 492.8 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.09236, allocations: 15.94 kB / 492.8 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.565e-05/0.09239, allocations: 12 kB / 492.8 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.09252, allocations: 79.56 kB / 492.9 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.09253, allocations: 3.984 kB / 492.9 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.09255, allocations: 4 kB / 492.9 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.09256, allocations: 0 / 492.9 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.415e-05/0.09263, allocations: 43.98 kB / 492.9 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005631/0.0932, allocations: 388.6 kB / 493.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002907/0.09351, allocations: 175.5 kB / 493.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.441e-05/0.09359, allocations: 48.75 kB / 493.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.09361, allocations: 4 kB / 493.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.09363, allocations: 30.56 kB / 493.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.09364, allocations: 0 / 493.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007656/0.09441, allocations: 442.8 kB / 494 MB, free: 15.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.088e-05/0.09445, allocations: 55.34 kB / 494 MB, free: 14.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.09461, allocations: 161.1 kB / 494.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.09463, allocations: 25.7 kB / 494.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.27e-05/0.09471, allocations: 115.9 kB / 494.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.05e-05/0.09475, allocations: 47.3 kB / 494.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.203e-05/0.09481, allocations: 37.7 kB / 494.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.09492, allocations: 322.8 kB / 494.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.49e-05/0.09498, allocations: 35.89 kB / 494.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.13e-05/0.09506, allocations: 54.56 kB / 494.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004176/0.09548, allocations: 180.9 kB / 495 MB, free: 13.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.0955, allocations: 0 / 495 MB, free: 13.94 MB / 366.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.0004564/0.09596, allocations: 344.3 kB / 495.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.09598, allocations: 4 kB / 495.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.09599, allocations: 3.938 kB / 495.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001793/0.09617, allocations: 57.69 kB / 495.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.09629, allocations: 23.98 kB / 495.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/0.09866, allocations: 4.637 MB / 0.4883 GB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.186e-05/0.09876, allocations: 11.97 kB / 0.4884 GB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.09877, allocations: 4 kB / 0.4884 GB, free: 8.461 MB / 366.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.0001196/0.0989, allocations: 129.7 kB / 0.4885 GB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.373e-05/0.09894, allocations: 15.97 kB / 0.4885 GB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.593e-05/0.09897, allocations: 16.7 kB / 0.4885 GB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.09898, allocations: 4 kB / 0.4885 GB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.09898, allocations: 0 / 0.4885 GB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.099, allocations: 3.984 kB / 0.4885 GB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005246/0.09953, allocations: 464.7 kB / 0.489 GB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.09954, allocations: 64 / 0.489 GB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001015/0.09965, allocations: 20 kB / 0.489 GB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001306/0.09979, allocations: 40.81 kB / 0.489 GB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.09981, allocations: 4 kB / 0.489 GB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001063/0.1009, allocations: 1.619 MB / 0.4906 GB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1009, allocations: 0 / 0.4906 GB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003007/0.1012, allocations: 289.7 kB / 0.4909 GB, free: 5.633 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.216e-05/0.1013, allocations: 85.02 kB / 0.491 GB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.076e-05/0.1013, allocations: 12.03 kB / 0.491 GB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.693e-05/0.1014, allocations: 4 kB / 0.491 GB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.765e-05/0.1014, allocations: 11.92 kB / 0.491 GB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.1014, allocations: 8 kB / 0.491 GB, free: 5.496 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.403e-05/0.1015, allocations: 123.5 kB / 0.4911 GB, free: 5.379 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1015, allocations: 0 / 0.4911 GB, free: 5.379 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000372/0.1019, allocations: 32 kB / 0.4911 GB, free: 5.348 MB / 366.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.0005911/0.1025, allocations: 0.8162 MB / 0.4919 GB, free: 4.496 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003777/0.1029, allocations: 319.8 kB / 0.4922 GB, free: 4.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.1029, allocations: 0 / 0.4922 GB, free: 4.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001635/0.1031, allocations: 162.9 kB / 0.4924 GB, free: 3.988 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.1034, allocations: 15.98 kB / 0.4924 GB, free: 3.973 MB / 366.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.002576/0.106, allocations: 2.44 MB / 0.4948 GB, free: 1.336 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/0.1063, allocations: 0.7124 MB / 0.4955 GB, free: 0.5977 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.653e-05/0.1063, allocations: 12.59 kB / 0.4955 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.644e-05/0.1064, allocations: 43.42 kB / 0.4955 GB, free: 0.543 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1064, allocations: 0 / 0.4955 GB, free: 0.543 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02883/0.1352, allocations: 3.412 MB / 0.4989 GB, free: 13.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.24, allocations: 8.016 kB / 0.4989 GB, free: 13.31 MB / 382.1 MB (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 --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)