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.005116/0.005116, allocations: 100.3 kB / 15.73 MB, free: 6.484 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.001082/0.001082, allocations: 189 kB / 16.68 MB, free: 6.367 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.355/1.355, 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.2037/0.2037, allocations: 22.36 MB / 312.9 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00219/0.00219, allocations: 63.47 kB / 434.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1237, allocations: 54.96 MB / 489.4 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002298/0.126, allocations: 1.673 MB / 491.1 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000631/0.1266, allocations: 463 kB / 491.5 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.593e-05/0.1267, allocations: 0 / 491.5 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.49e-05/0.1268, allocations: 11.86 kB / 491.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001966/0.127, allocations: 35.72 kB / 491.6 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.101e-05/0.1271, allocations: 23.95 kB / 491.6 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001386/0.1273, allocations: 123.5 kB / 491.7 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.1274, allocations: 37.36 kB / 491.8 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.406e-05/0.1275, allocations: 47.84 kB / 491.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.593e-05/0.1276, allocations: 55.64 kB / 491.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.981e-05/0.1276, allocations: 8 kB / 491.9 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.573e-05/0.1276, allocations: 12 kB / 491.9 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.229e-05/0.1276, allocations: 23.91 kB / 491.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.441e-05/0.1277, allocations: 47.73 kB / 492 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001251/0.1278, allocations: 115.4 kB / 492.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1278, allocations: 4 kB / 492.1 MB, free: 1.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1278, allocations: 0 / 492.1 MB, free: 1.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.1279, allocations: 0 / 492.1 MB, free: 1.137 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.0004843/0.1283, allocations: 422.9 kB / 492.5 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.1284, allocations: 8.031 kB / 492.5 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.706e-05/0.1284, allocations: 42.75 kB / 492.5 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/0.1285, allocations: 20.83 kB / 492.6 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/0.1287, allocations: 208.7 kB / 492.8 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-06/0.1287, allocations: 11.88 kB / 492.8 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.1287, allocations: 12 kB / 492.8 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001351/0.1289, allocations: 77.67 kB / 492.9 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.1289, allocations: 4 kB / 492.9 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.1289, allocations: 4 kB / 492.9 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1289, allocations: 3.984 kB / 492.9 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.541e-05/0.129, allocations: 41.88 kB / 492.9 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005601/0.1295, allocations: 392.7 kB / 493.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002833/0.1298, allocations: 175.6 kB / 493.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.426e-05/0.1299, allocations: 48.83 kB / 493.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.018e-05/0.1299, allocations: 4 kB / 493.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.95e-05/0.13, allocations: 34.56 kB / 493.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.13, allocations: 0 / 493.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007641/0.1307, allocations: 443.8 kB / 494 MB, free: 14.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.339e-05/0.1308, allocations: 59.34 kB / 494.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001365/0.1309, allocations: 157.1 kB / 494.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.131, allocations: 25.7 kB / 494.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.838e-05/0.131, allocations: 120 kB / 494.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.585e-05/0.1311, allocations: 55.45 kB / 494.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.186e-05/0.1311, allocations: 37.7 kB / 494.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.668e-05/0.1312, allocations: 322.8 kB / 494.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.686e-05/0.1313, allocations: 35.98 kB / 494.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.763e-05/0.1314, allocations: 53.38 kB / 494.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004329/0.1318, allocations: 176.7 kB / 495 MB, free: 13.9 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-06/0.1318, allocations: 0 / 495 MB, free: 13.9 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.0004742/0.1323, allocations: 349.6 kB / 495.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.1323, allocations: 4 kB / 495.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.1323, allocations: 3.938 kB / 495.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001723/0.1325, allocations: 57.69 kB / 495.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001/0.1326, allocations: 27.92 kB / 495.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002616/0.1352, allocations: 4.637 MB / 0.4884 GB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.419e-05/0.1353, allocations: 11.97 kB / 0.4884 GB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.1353, allocations: 4 kB / 0.4884 GB, free: 8.414 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.0001251/0.1355, allocations: 129.9 kB / 0.4885 GB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.054e-05/0.1355, allocations: 16 kB / 0.4885 GB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.973e-05/0.1356, allocations: 20.69 kB / 0.4885 GB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1356, allocations: 7.938 kB / 0.4885 GB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.1356, allocations: 0 / 0.4885 GB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1356, allocations: 3.938 kB / 0.4885 GB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005427/0.1361, allocations: 460.8 kB / 0.489 GB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.1361, allocations: 0 / 0.489 GB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.1363, allocations: 16 kB / 0.489 GB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001374/0.1364, allocations: 40.81 kB / 0.489 GB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.904e-05/0.1364, allocations: 7.938 kB / 0.4891 GB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001199/0.1376, allocations: 1.611 MB / 0.4906 GB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1376, allocations: 0 / 0.4906 GB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003235/0.138, allocations: 285.9 kB / 0.4909 GB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.268e-05/0.138, allocations: 89.02 kB / 0.491 GB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.1381, allocations: 4.047 kB / 0.491 GB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.1382, allocations: 11.98 kB / 0.491 GB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.548e-05/0.1382, allocations: 11.94 kB / 0.491 GB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.1382, allocations: 7.984 kB / 0.491 GB, free: 5.453 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.788e-05/0.1383, allocations: 119.5 kB / 0.4911 GB, free: 5.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1383, allocations: 0 / 0.4911 GB, free: 5.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003817/0.1387, allocations: 28 kB / 0.4912 GB, free: 5.312 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.0006022/0.1393, allocations: 0.828 MB / 0.492 GB, free: 4.449 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003913/0.1397, allocations: 317.2 kB / 0.4923 GB, free: 4.113 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.1397, allocations: 128 / 0.4923 GB, free: 4.113 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.1399, allocations: 158.7 kB / 0.4924 GB, free: 3.945 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.1402, allocations: 12.19 kB / 0.4924 GB, free: 3.934 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.002624/0.1429, allocations: 2.454 MB / 0.4948 GB, free: 1.285 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.1432, allocations: 0.7124 MB / 0.4955 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.924e-05/0.1432, allocations: 16.59 kB / 0.4955 GB, free: 0.5312 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.373e-05/0.1433, allocations: 39.42 kB / 0.4956 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1433, allocations: 0 / 0.4956 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02539/0.1687, allocations: 3.411 MB / 0.4989 GB, free: 13.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.64, allocations: 4.016 kB / 0.4989 GB, free: 13.26 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)