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.007634/0.007634, allocations: 98.39 kB / 15.73 MB, free: 5.98 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.001594/0.001595, allocations: 194.4 kB / 16.67 MB, free: 5.91 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09333/0.09333, allocations: 22.33 MB / 312.9 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 59.91 kB / 434.4 MB, free: 14.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09845/0.09975, allocations: 54.96 MB / 489.4 MB, free: 7.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002762/0.1025, allocations: 1.67 MB / 491 MB, free: 5.676 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008089/0.1034, allocations: 467 kB / 491.5 MB, free: 5.219 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.406e-05/0.1035, allocations: 0 / 491.5 MB, free: 5.219 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.483e-05/0.1036, allocations: 7.875 kB / 491.5 MB, free: 5.211 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002091/0.1038, allocations: 39.69 kB / 491.5 MB, free: 5.172 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.247e-05/0.1039, allocations: 23.97 kB / 491.6 MB, free: 5.148 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000197/0.1041, allocations: 123.5 kB / 491.7 MB, free: 5.027 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.1043, allocations: 29.72 kB / 491.7 MB, free: 4.996 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001249/0.1044, allocations: 51.78 kB / 491.8 MB, free: 4.945 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001174/0.1045, allocations: 55.7 kB / 491.8 MB, free: 4.891 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.854e-05/0.1045, allocations: 8 kB / 491.8 MB, free: 4.883 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.867e-05/0.1046, allocations: 8 kB / 491.8 MB, free: 4.875 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.112e-05/0.1046, allocations: 23.91 kB / 491.9 MB, free: 4.852 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.099e-05/0.1047, allocations: 63.66 kB / 491.9 MB, free: 4.789 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001726/0.1049, allocations: 103.5 kB / 492 MB, free: 4.688 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1049, allocations: 0 / 492 MB, free: 4.688 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1049, allocations: 3.938 kB / 492 MB, free: 4.684 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.1049, 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.0006338/0.1055, allocations: 421.7 kB / 492.4 MB, free: 4.227 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.1056, allocations: 12.03 kB / 492.5 MB, free: 4.215 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.993e-05/0.1057, allocations: 50.73 kB / 492.5 MB, free: 4.156 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.95e-05/0.1057, allocations: 12.84 kB / 492.5 MB, free: 4.145 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.106, allocations: 208.7 kB / 492.7 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.106, allocations: 7.938 kB / 492.7 MB, free: 3.895 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.818e-05/0.1061, allocations: 8 kB / 492.7 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001552/0.1062, allocations: 89.59 kB / 492.8 MB, free: 3.793 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.1062, allocations: 3.984 kB / 492.8 MB, free: 3.789 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.1063, allocations: 0 / 492.8 MB, free: 3.789 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.1063, allocations: 4 kB / 492.8 MB, free: 3.785 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.672e-05/0.1064, allocations: 55.92 kB / 492.9 MB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006441/0.107, allocations: 380.8 kB / 493.3 MB, free: 3.309 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.1073, allocations: 167.6 kB / 493.4 MB, free: 3.117 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.32e-05/0.1074, allocations: 60.7 kB / 493.5 MB, free: 3.055 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.257e-05/0.1074, allocations: 4 kB / 493.5 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.1075, allocations: 30.56 kB / 493.5 MB, free: 3.012 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/0.1075, allocations: 0 / 493.5 MB, free: 3.012 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007902/0.1083, allocations: 447 kB / 494 MB, free: 2.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/0.1083, allocations: 51.41 kB / 494 MB, free: 2.457 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.1085, allocations: 168 kB / 494.2 MB, free: 2.281 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.1085, allocations: 25.7 kB / 494.2 MB, free: 2.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.024e-05/0.1086, allocations: 112 kB / 494.3 MB, free: 2.137 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.563e-05/0.1086, allocations: 47.59 kB / 494.3 MB, free: 2.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-05/0.1087, allocations: 29.72 kB / 494.4 MB, free: 2.055 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.1088, allocations: 326.8 kB / 494.7 MB, free: 1.727 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.468e-05/0.1089, allocations: 35.92 kB / 494.7 MB, free: 1.691 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.548e-05/0.1089, allocations: 64.48 kB / 494.8 MB, free: 1.621 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004409/0.1094, allocations: 173.5 kB / 495 MB, free: 1.445 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1094, allocations: 3.938 kB / 495 MB, free: 1.441 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.0005099/0.1099, allocations: 346.2 kB / 495.3 MB, free: 1.051 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.1099, allocations: 8 kB / 495.3 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.1099, allocations: 8 kB / 495.3 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001884/0.1101, allocations: 45.69 kB / 495.4 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.1103, allocations: 27.92 kB / 495.4 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002888/0.1132, allocations: 4.637 MB / 0.4883 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.16e-05/0.1132, allocations: 7.938 kB / 0.4883 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.1133, allocations: 7.969 kB / 0.4883 GB, free: 11.96 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.000127/0.1134, allocations: 133.8 kB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.681e-05/0.1134, allocations: 11.91 kB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.802e-05/0.1135, allocations: 16.72 kB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1135, allocations: 0 / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.1135, allocations: 0 / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.1135, allocations: 3.938 kB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005529/0.1141, allocations: 464.8 kB / 0.4889 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1141, allocations: 0 / 0.4889 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.1142, allocations: 20.08 kB / 0.4889 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001274/0.1143, allocations: 36.77 kB / 0.489 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.585e-05/0.1143, allocations: 8 kB / 0.489 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.1156, allocations: 1.619 MB / 0.4906 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1156, allocations: 0 / 0.4906 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003968/0.116, allocations: 289.8 kB / 0.4908 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.773e-05/0.1161, allocations: 89.09 kB / 0.4909 GB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.1161, allocations: 8 kB / 0.4909 GB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.853e-05/0.1162, allocations: 8 kB / 0.4909 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.264e-05/0.1162, allocations: 11.92 kB / 0.491 GB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.1162, allocations: 4 kB / 0.491 GB, free: 9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001036/0.1164, allocations: 118.1 kB / 0.4911 GB, free: 8.887 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1164, allocations: 0 / 0.4911 GB, free: 8.887 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003888/0.1168, allocations: 36 kB / 0.4911 GB, free: 8.852 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.000685/0.1174, allocations: 0.8095 MB / 0.4919 GB, free: 8.008 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004886/0.118, allocations: 332.2 kB / 0.4922 GB, free: 7.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.118, allocations: 3.938 kB / 0.4922 GB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.1182, allocations: 150.7 kB / 0.4924 GB, free: 7.496 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.1185, allocations: 20.09 kB / 0.4924 GB, free: 7.477 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.002788/0.1213, allocations: 2.46 MB / 0.4948 GB, free: 4.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.1216, allocations: 0.7162 MB / 0.4955 GB, free: 4.078 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.142e-05/0.1217, allocations: 8.656 kB / 0.4955 GB, free: 4.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.841e-05/0.1217, allocations: 35.42 kB / 0.4955 GB, free: 4.035 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1217, allocations: 0 / 0.4955 GB, free: 4.035 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02493/0.1467, allocations: 3.403 MB / 0.4989 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.64, allocations: 17.45 kB / 0.4989 GB, free: 0.8047 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 & 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)