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.004956/0.004956, allocations: 102.6 kB / 15.73 MB, free: 5.902 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.001173/0.001173, allocations: 186.4 kB / 16.67 MB, free: 5.824 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.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 4.121 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1918/0.1918, allocations: 22.35 MB / 312.9 MB, free: 12.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 60.41 kB / 434.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09453/0.09573, allocations: 54.96 MB / 489.4 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002354/0.09812, allocations: 1.676 MB / 491.1 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006181/0.09876, allocations: 463 kB / 491.5 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.008e-05/0.09886, allocations: 0 / 491.5 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.67e-05/0.09891, allocations: 15.8 kB / 491.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001914/0.09912, allocations: 31.78 kB / 491.6 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.235e-05/0.09921, allocations: 31.91 kB / 491.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000146/0.09936, allocations: 119.6 kB / 491.7 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.09949, allocations: 25.42 kB / 491.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.17e-05/0.09959, allocations: 51.78 kB / 491.8 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.0997, allocations: 59.7 kB / 491.9 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.901e-05/0.09972, allocations: 8 kB / 491.9 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.751e-05/0.09975, allocations: 12 kB / 491.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.405e-05/0.09977, allocations: 27.84 kB / 491.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.723e-05/0.09983, allocations: 47.73 kB / 492 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001206/0.09995, allocations: 108.4 kB / 492.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.09996, allocations: 0 / 492.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.09997, allocations: 0 / 492.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.09998, allocations: 0 / 492.1 MB, free: 1.16 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.0005473/0.1005, allocations: 431 kB / 492.5 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.1006, allocations: 8.031 kB / 492.5 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.735e-05/0.1006, allocations: 38.75 kB / 492.5 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.283e-05/0.1007, allocations: 12.75 kB / 492.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002202/0.1009, allocations: 213.9 kB / 492.8 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.1009, allocations: 11.94 kB / 492.8 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.1009, allocations: 15.98 kB / 492.8 MB, free: 360 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000136/0.1011, allocations: 83.38 kB / 492.9 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.1011, allocations: 3.938 kB / 492.9 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.1011, allocations: 4 kB / 492.9 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1011, allocations: 4 kB / 492.9 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.276e-05/0.1012, allocations: 47.91 kB / 492.9 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005358/0.1017, allocations: 384.7 kB / 493.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.102, allocations: 175.6 kB / 493.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.328e-05/0.1021, allocations: 44.84 kB / 493.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.967e-06/0.1021, allocations: 0 / 493.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.941e-05/0.1021, allocations: 34.56 kB / 493.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 9.61e-07/0.1022, allocations: 0 / 493.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007178/0.1029, allocations: 446.7 kB / 494 MB, free: 15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.768e-05/0.1029, allocations: 55.34 kB / 494 MB, free: 14.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.1031, allocations: 160.7 kB / 494.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.1031, allocations: 25.7 kB / 494.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.522e-05/0.1031, allocations: 115.9 kB / 494.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.266e-05/0.1032, allocations: 47.36 kB / 494.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.84e-05/0.1032, allocations: 29.7 kB / 494.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1034, allocations: 326.8 kB / 494.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.715e-05/0.1034, allocations: 35.89 kB / 494.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.916e-05/0.1035, allocations: 54.56 kB / 494.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004195/0.1039, allocations: 181.1 kB / 495 MB, free: 13.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.104, allocations: 4 kB / 495 MB, free: 13.92 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.0004986/0.1045, allocations: 342.2 kB / 495.3 MB, free: 13.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.1045, allocations: 8 kB / 495.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1045, allocations: 0 / 495.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001746/0.1047, allocations: 53.62 kB / 495.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.734e-05/0.1048, allocations: 23.98 kB / 495.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002505/0.1073, allocations: 4.637 MB / 0.4883 GB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.254e-05/0.1074, allocations: 19.97 kB / 0.4883 GB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-06/0.1074, allocations: 4 kB / 0.4883 GB, free: 8.438 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.0001093/0.1075, allocations: 129.7 kB / 0.4885 GB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.289e-05/0.1076, allocations: 7.906 kB / 0.4885 GB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.547e-05/0.1076, allocations: 16.72 kB / 0.4885 GB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.1076, allocations: 3.984 kB / 0.4885 GB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.1076, allocations: 8 kB / 0.4885 GB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1076, allocations: 3.938 kB / 0.4885 GB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005063/0.1081, allocations: 452.8 kB / 0.4889 GB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.1082, allocations: 0 / 0.4889 GB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.1083, allocations: 23.92 kB / 0.489 GB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001353/0.1084, allocations: 52.81 kB / 0.489 GB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.1084, allocations: 0 / 0.489 GB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.1095, allocations: 1.619 MB / 0.4906 GB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1095, allocations: 0 / 0.4906 GB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002948/0.1098, allocations: 282.7 kB / 0.4909 GB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.324e-05/0.1099, allocations: 85.02 kB / 0.4909 GB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.245e-05/0.1099, allocations: 12 kB / 0.491 GB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.706e-05/0.11, allocations: 0 / 0.491 GB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.571e-05/0.11, allocations: 11.97 kB / 0.491 GB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.11, allocations: 4 kB / 0.491 GB, free: 5.488 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.399e-05/0.1101, allocations: 127.1 kB / 0.4911 GB, free: 5.367 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1101, allocations: 4 kB / 0.4911 GB, free: 5.363 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003705/0.1105, allocations: 28 kB / 0.4911 GB, free: 5.336 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.000562/0.1111, allocations: 0.8302 MB / 0.4919 GB, free: 4.473 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003633/0.1115, allocations: 313.3 kB / 0.4922 GB, free: 4.141 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1115, allocations: 0 / 0.4922 GB, free: 4.141 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001555/0.1116, allocations: 158.6 kB / 0.4924 GB, free: 3.973 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.1119, allocations: 17.34 kB / 0.4924 GB, free: 3.957 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.002405/0.1143, allocations: 2.449 MB / 0.4948 GB, free: 1.316 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.1146, allocations: 0.7124 MB / 0.4955 GB, free: 0.5781 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.371e-05/0.1146, allocations: 12.59 kB / 0.4955 GB, free: 0.5664 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.953e-05/0.1147, allocations: 39.42 kB / 0.4955 GB, free: 0.5273 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1147, allocations: 0 / 0.4955 GB, free: 0.5273 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02496/0.1397, allocations: 3.493 MB / 0.499 GB, free: 13.22 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.46, allocations: 12.78 kB / 0.499 GB, free: 13.21 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)