Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_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_order0_fixed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_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.006004/0.006004, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.00128/0.00128, allocations: 192.3 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1553/0.1553, allocations: 22.33 MB / 312.9 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 59.91 kB / 434.4 MB, free: 14.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.103, allocations: 54.95 MB / 489.4 MB, free: 7.383 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002856/0.1058, allocations: 1.596 MB / 491 MB, free: 5.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008524/0.1067, allocations: 455.1 kB / 491.4 MB, free: 5.324 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.1068, allocations: 0 / 491.4 MB, free: 5.324 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.22e-05/0.1069, allocations: 3.938 kB / 491.4 MB, free: 5.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002356/0.1072, allocations: 31.77 kB / 491.4 MB, free: 5.289 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.914e-05/0.1073, allocations: 27.91 kB / 491.5 MB, free: 5.262 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001606/0.1074, allocations: 103.6 kB / 491.6 MB, free: 5.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.1076, allocations: 23.94 kB / 491.6 MB, free: 5.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.1077, allocations: 47.83 kB / 491.6 MB, free: 5.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.1079, allocations: 51.7 kB / 491.7 MB, free: 5.039 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.255e-05/0.1079, allocations: 8 kB / 491.7 MB, free: 5.031 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.937e-05/0.1079, allocations: 8 kB / 491.7 MB, free: 5.023 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.349e-05/0.108, allocations: 15.98 kB / 491.7 MB, free: 5.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.153e-05/0.108, allocations: 43.73 kB / 491.8 MB, free: 4.965 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.1082, allocations: 91.84 kB / 491.9 MB, free: 4.875 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.1082, allocations: 0 / 491.9 MB, free: 4.875 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1082, allocations: 4 kB / 491.9 MB, free: 4.871 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.014e-06/0.1082, allocations: 0 / 491.9 MB, free: 4.871 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006708/0.1089, allocations: 405.8 kB / 492.3 MB, free: 4.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.109, allocations: 12.03 kB / 492.3 MB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.554e-05/0.109, allocations: 38.69 kB / 492.3 MB, free: 4.371 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.214e-05/0.1091, allocations: 20.83 kB / 492.3 MB, free: 4.352 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/0.1093, allocations: 192.2 kB / 492.5 MB, free: 4.125 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.1093, allocations: 8.375 kB / 492.5 MB, free: 4.117 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/0.1093, allocations: 20.11 kB / 492.5 MB, free: 4.098 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000145/0.1095, allocations: 77.58 kB / 492.6 MB, free: 4.016 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.1095, allocations: 0 / 492.6 MB, free: 4.016 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.106e-05/0.1095, allocations: 4 kB / 492.6 MB, free: 4.012 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1095, allocations: 3.938 kB / 492.6 MB, free: 4.008 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.086e-05/0.1096, allocations: 43.97 kB / 492.7 MB, free: 3.965 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006203/0.1103, allocations: 368.6 kB / 493 MB, free: 3.555 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002678/0.1105, allocations: 90.62 kB / 493.1 MB, free: 3.457 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.938e-05/0.1106, allocations: 40.84 kB / 493.2 MB, free: 3.414 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.1106, allocations: 0 / 493.2 MB, free: 3.414 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.1107, allocations: 34.69 kB / 493.2 MB, free: 3.371 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 2.425e-06/0.1107, allocations: 7.984 kB / 493.2 MB, free: 3.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007865/0.1115, allocations: 423.2 kB / 493.6 MB, free: 2.895 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.1115, allocations: 51.59 kB / 493.7 MB, free: 2.832 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.1117, allocations: 143.9 kB / 493.8 MB, free: 2.684 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.1117, allocations: 33.64 kB / 493.8 MB, free: 2.645 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.455e-05/0.1118, allocations: 108 kB / 493.9 MB, free: 2.535 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.447e-05/0.1118, allocations: 47.64 kB / 494 MB, free: 2.488 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.935e-05/0.1119, allocations: 29.72 kB / 494 MB, free: 2.453 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.112, allocations: 322.8 kB / 494.3 MB, free: 2.129 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.05e-05/0.1121, allocations: 23.98 kB / 494.4 MB, free: 2.105 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.74e-05/0.1121, allocations: 57.8 kB / 494.4 MB, free: 2.043 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004733/0.1126, allocations: 247.4 kB / 494.7 MB, free: 1.773 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.1126, allocations: 3.938 kB / 494.7 MB, free: 1.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002645/0.1129, allocations: 150.4 kB / 494.8 MB, free: 1.613 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.1129, allocations: 4 kB / 494.8 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1129, allocations: 0 / 494.8 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000175/0.1131, allocations: 44.77 kB / 494.9 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.527e-05/0.1132, allocations: 23.94 kB / 494.9 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001579/0.1148, allocations: 1.603 MB / 496.5 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.933e-05/0.1149, allocations: 12.12 kB / 496.5 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.1149, allocations: 4 kB / 496.5 MB, free: 15.78 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 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: G.Pm = G.Pcmd. 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 (13): * 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: 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 prepare postOptimizeDAE: time 0.000152/0.1151, allocations: 130.4 kB / 496.6 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.953e-05/0.1151, allocations: 11.95 kB / 496.6 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.865e-05/0.1152, allocations: 12.72 kB / 496.6 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.1152, allocations: 96 / 496.6 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1152, allocations: 3.984 kB / 496.7 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.1152, allocations: 4 kB / 496.7 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006076/0.1158, allocations: 448.7 kB / 497.1 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.1158, allocations: 4 kB / 497.1 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.848e-05/0.1159, allocations: 15.98 kB / 497.1 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001638/0.1161, allocations: 40.89 kB / 497.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.1161, allocations: 96 / 497.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001538/0.1177, allocations: 1.623 MB / 498.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.1177, allocations: 3.984 kB / 498.8 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003608/0.1181, allocations: 273.9 kB / 499 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.939e-05/0.1182, allocations: 89.02 kB / 499.1 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/0.1182, allocations: 4 kB / 499.1 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.193e-05/0.1183, allocations: 4 kB / 499.1 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.641e-05/0.1183, allocations: 8.031 kB / 499.2 MB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.1183, allocations: 4 kB / 499.2 MB, free: 12.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.945e-05/0.1184, allocations: 116.9 kB / 499.3 MB, free: 12.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1184, allocations: 8 kB / 499.3 MB, free: 12.74 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003545/0.1188, allocations: 24 kB / 499.3 MB, free: 12.72 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (G.thetap,G.deltag,G.wg) * 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 (8): * Single equations (assignments): 7 * 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.0006045/0.1194, allocations: 0.8048 MB / 0.4884 GB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000325/0.1197, allocations: 198.6 kB / 0.4886 GB, free: 11.67 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1197, allocations: 3.938 kB / 0.4886 GB, free: 11.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.1199, allocations: 154.7 kB / 0.4887 GB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.1202, allocations: 8 kB / 0.4887 GB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002413/0.1226, allocations: 1.981 MB / 0.4907 GB, free: 9.398 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003436/0.1229, allocations: 0.7045 MB / 0.4914 GB, free: 8.668 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.256e-05/0.123, allocations: 8.875 kB / 0.4914 GB, free: 8.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.851e-05/0.1231, allocations: 27.44 kB / 0.4914 GB, free: 8.633 MB / 382.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1231, allocations: 0 / 0.4914 GB, free: 8.633 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02358/0.1466, allocations: 2.956 MB / 0.4943 GB, free: 5.828 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.15, allocations: 11.47 kB / 0.4943 GB, free: 5.816 MB / 382.1 MB (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.sim & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_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_order0_fixed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1)