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.004511/0.004511, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.001202/0.001202, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09698/0.09698, allocations: 22.32 MB / 312.9 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 63.91 kB / 434.4 MB, free: 14.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1055, allocations: 54.95 MB / 489.4 MB, free: 7.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002826/0.1083, allocations: 1.674 MB / 491.1 MB, free: 5.664 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007793/0.1091, allocations: 459.1 kB / 491.5 MB, free: 5.215 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.488e-05/0.1092, allocations: 0 / 491.5 MB, free: 5.215 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.557e-05/0.1093, allocations: 19.8 kB / 491.5 MB, free: 5.195 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002006/0.1095, allocations: 27.77 kB / 491.5 MB, free: 5.168 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.365e-05/0.1096, allocations: 27.91 kB / 491.6 MB, free: 5.141 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001769/0.1098, allocations: 123.6 kB / 491.7 MB, free: 5.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.1099, allocations: 21.72 kB / 491.7 MB, free: 4.996 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.11, allocations: 59.72 kB / 491.8 MB, free: 4.938 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.1102, allocations: 55.75 kB / 491.8 MB, free: 4.883 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.868e-05/0.1102, allocations: 8 kB / 491.8 MB, free: 4.875 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.471e-05/0.1102, allocations: 12 kB / 491.8 MB, free: 4.863 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.045e-05/0.1103, allocations: 23.86 kB / 491.9 MB, free: 4.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.41e-05/0.1103, allocations: 51.67 kB / 491.9 MB, free: 4.789 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001607/0.1105, allocations: 107.5 kB / 492 MB, free: 4.684 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1105, allocations: 0 / 492 MB, free: 4.684 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1105, allocations: 0 / 492 MB, free: 4.684 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.1105, allocations: 0 / 492 MB, free: 4.684 MB / 366.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.0006468/0.1112, allocations: 430.9 kB / 492.4 MB, free: 4.215 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1112, allocations: 8.031 kB / 492.5 MB, free: 4.207 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.433e-05/0.1113, allocations: 38.75 kB / 492.5 MB, free: 4.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/0.1113, allocations: 16.83 kB / 492.5 MB, free: 4.145 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002978/0.1116, allocations: 216.6 kB / 492.7 MB, free: 3.895 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.1117, allocations: 11.94 kB / 492.7 MB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.716e-05/0.1117, allocations: 15.94 kB / 492.7 MB, free: 3.867 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.1119, allocations: 77.67 kB / 492.8 MB, free: 3.785 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.1119, allocations: 0 / 492.8 MB, free: 3.785 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.1119, allocations: 3.984 kB / 492.8 MB, free: 3.781 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.1119, allocations: 7.984 kB / 492.8 MB, free: 3.773 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.112, allocations: 51.88 kB / 492.9 MB, free: 3.723 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006349/0.1127, allocations: 384.8 kB / 493.3 MB, free: 3.297 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003117/0.113, allocations: 179.6 kB / 493.4 MB, free: 3.094 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.96e-05/0.1131, allocations: 40.84 kB / 493.5 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.1131, allocations: 0 / 493.5 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.1131, allocations: 34.56 kB / 493.5 MB, free: 3.008 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 9.72e-07/0.1131, allocations: 0 / 493.5 MB, free: 3.008 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008402/0.114, allocations: 451.7 kB / 494 MB, free: 2.512 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/0.114, allocations: 51.41 kB / 494 MB, free: 2.449 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001561/0.1142, allocations: 160.9 kB / 494.2 MB, free: 2.281 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.1142, allocations: 25.7 kB / 494.2 MB, free: 2.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.039e-05/0.1143, allocations: 116 kB / 494.3 MB, free: 2.133 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.336e-05/0.1143, allocations: 47.59 kB / 494.3 MB, free: 2.086 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.154e-05/0.1144, allocations: 33.7 kB / 494.4 MB, free: 2.047 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1145, allocations: 326.8 kB / 494.7 MB, free: 1.719 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.926e-05/0.1146, allocations: 31.98 kB / 494.7 MB, free: 1.688 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.101e-05/0.1147, allocations: 60.5 kB / 494.8 MB, free: 1.621 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000437/0.1151, allocations: 180.6 kB / 495 MB, free: 1.438 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.1151, allocations: 0 / 495 MB, free: 1.438 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.000509/0.1156, allocations: 346.2 kB / 495.3 MB, free: 1.047 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.1157, allocations: 8 kB / 495.3 MB, free: 1.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.1157, allocations: 3.938 kB / 495.3 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000176/0.1159, allocations: 49.69 kB / 495.4 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.116, allocations: 31.98 kB / 495.4 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002975/0.119, allocations: 4.633 MB / 0.4883 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.918e-05/0.1191, allocations: 15.91 kB / 0.4883 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.1191, allocations: 7.938 kB / 0.4883 GB, free: 11.95 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 (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.0001241/0.1192, allocations: 125.8 kB / 0.4884 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.603e-05/0.1192, allocations: 15.91 kB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.645e-05/0.1193, allocations: 16.7 kB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.1193, allocations: 8.062 kB / 0.4885 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.1193, allocations: 0 / 0.4885 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1193, allocations: 3.938 kB / 0.4885 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005546/0.1199, allocations: 456.8 kB / 0.4889 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.1199, allocations: 0 / 0.4889 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.12, allocations: 19.94 kB / 0.4889 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001316/0.1201, allocations: 48.88 kB / 0.489 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.1202, allocations: 0 / 0.489 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001248/0.1214, allocations: 1.619 MB / 0.4906 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1214, allocations: 0 / 0.4906 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003367/0.1218, allocations: 289.8 kB / 0.4908 GB, free: 9.125 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.958e-05/0.1218, allocations: 85.06 kB / 0.4909 GB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.1219, allocations: 8.031 kB / 0.4909 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.247e-05/0.122, allocations: 4 kB / 0.4909 GB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.767e-05/0.122, allocations: 7.938 kB / 0.4909 GB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.417e-06/0.122, allocations: 7.984 kB / 0.491 GB, free: 8.996 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.557e-05/0.1221, allocations: 126.1 kB / 0.4911 GB, free: 8.875 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1221, allocations: 0 / 0.4911 GB, free: 8.875 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003741/0.1225, allocations: 28 kB / 0.4911 GB, free: 8.848 MB / 382.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.0006408/0.1231, allocations: 0.824 MB / 0.4919 GB, free: 7.988 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004255/0.1236, allocations: 316.2 kB / 0.4922 GB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1236, allocations: 0 / 0.4922 GB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.1238, allocations: 162.6 kB / 0.4924 GB, free: 7.484 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.1241, allocations: 18.31 kB / 0.4924 GB, free: 7.469 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 simCode: created linear, non-linear and system jacobian parts: time 0.00271/0.1268, allocations: 2.446 MB / 0.4948 GB, free: 4.824 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003264/0.1271, allocations: 0.7201 MB / 0.4955 GB, free: 4.078 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.515e-05/0.1272, allocations: 12.64 kB / 0.4955 GB, free: 4.066 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.439e-05/0.1273, allocations: 39.42 kB / 0.4955 GB, free: 4.027 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1273, allocations: 4 kB / 0.4955 GB, free: 4.023 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05269/0.18, allocations: 3.41 MB / 0.4989 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.52, allocations: 13.3 kB / 0.4989 GB, free: 0.793 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)