Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_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_order0_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_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.005046/0.005046, allocations: 99.11 kB / 15.73 MB, free: 6.035 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.001156/0.001156, allocations: 193.3 kB / 16.67 MB, free: 5.961 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2144/0.2144, allocations: 22.36 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.001181, allocations: 60.36 kB / 434.5 MB, free: 35.36 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09677/0.09796, allocations: 54.97 MB / 489.4 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.00224/0.1003, allocations: 1.479 MB / 490.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005463/0.1008, allocations: 419.2 kB / 491.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.304e-05/0.1009, allocations: 0 / 491.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.901e-05/0.1009, allocations: 7.922 kB / 491.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.1011, allocations: 27.78 kB / 491.4 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.278e-05/0.1012, allocations: 7.984 kB / 491.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.13e-05/0.1013, allocations: 71.69 kB / 491.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.255e-05/0.1013, allocations: 12.28 kB / 491.4 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.673e-05/0.1014, allocations: 31.86 kB / 491.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.244e-05/0.1015, allocations: 35.83 kB / 491.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.975e-05/0.1016, allocations: 4 kB / 491.5 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.234e-05/0.1016, allocations: 4 kB / 491.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.371e-05/0.1016, allocations: 23.84 kB / 491.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.409e-05/0.1017, allocations: 23.86 kB / 491.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.898e-05/0.1018, allocations: 47.7 kB / 491.6 MB, free: 1.637 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1018, allocations: 0 / 491.6 MB, free: 1.637 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1018, allocations: 0 / 491.6 MB, free: 1.637 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.1018, allocations: 0 / 491.6 MB, free: 1.637 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004642/0.1022, allocations: 383.2 kB / 492 MB, free: 1.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.1023, allocations: 8.031 kB / 492 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.567e-05/0.1024, allocations: 46.67 kB / 492 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.732e-05/0.1024, allocations: 8.891 kB / 492 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.1025, allocations: 180.3 kB / 492.2 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.1025, allocations: 4.375 kB / 492.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.061e-05/0.1026, allocations: 16.06 kB / 492.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001027/0.1027, allocations: 65.61 kB / 492.3 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.505e-06/0.1027, allocations: 0 / 492.3 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/0.1027, allocations: 8 kB / 492.3 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.1027, allocations: 0 / 492.3 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.474e-05/0.1028, allocations: 23.98 kB / 492.3 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004146/0.1032, allocations: 320.6 kB / 492.7 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.1034, allocations: 90.55 kB / 492.7 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.648e-05/0.1035, allocations: 32.94 kB / 492.8 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.536e-06/0.1035, allocations: 0 / 492.8 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.575e-05/0.1035, allocations: 30.75 kB / 492.8 MB, free: 280 kB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.1035, allocations: 3.938 kB / 492.8 MB, free: 276 kB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.00065/0.1042, allocations: 398.9 kB / 493.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.021e-05/0.1042, allocations: 51.41 kB / 493.2 MB, free: 15.76 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.1043, allocations: 132.1 kB / 493.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.1044, allocations: 25.7 kB / 493.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.064e-05/0.1044, allocations: 105 kB / 493.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.328e-05/0.1045, allocations: 35.7 kB / 493.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.131e-05/0.1045, allocations: 29.7 kB / 493.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.1047, allocations: 326.8 kB / 493.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.048e-05/0.1047, allocations: 16 kB / 493.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.941e-05/0.1048, allocations: 50.48 kB / 494 MB, free: 15.01 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004103/0.1052, allocations: 218.2 kB / 494.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.1052, allocations: 0 / 494.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000224/0.1055, allocations: 146.3 kB / 494.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.1055, allocations: 6.812 kB / 494.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1055, allocations: 8.062 kB / 494.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001358/0.1056, allocations: 32.83 kB / 494.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.249e-05/0.1057, allocations: 16 kB / 494.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/0.1071, allocations: 1.576 MB / 495.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.968e-05/0.1071, allocations: 4 kB / 495.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.1072, allocations: 7.938 kB / 496 MB, free: 12.83 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: 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: Pm = 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 (12): * Single equations (assignments): 11 * 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.0001093/0.1073, allocations: 133.7 kB / 496.1 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.1073, allocations: 7.953 kB / 496.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.158e-05/0.1073, allocations: 12.38 kB / 496.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.1074, allocations: 7.938 kB / 496.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.1074, allocations: 0 / 496.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.1074, allocations: 0 / 496.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004185/0.1078, allocations: 388.1 kB / 496.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1078, allocations: 0 / 496.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.304e-05/0.1079, allocations: 19.98 kB / 496.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000113/0.108, allocations: 32.83 kB / 496.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.108, allocations: 11.92 kB / 496.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.1091, allocations: 1.58 MB / 498.1 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1091, allocations: 0 / 498.1 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002558/0.1094, allocations: 249 kB / 498.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.962e-05/0.1094, allocations: 85.09 kB / 498.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.1094, allocations: 4 kB / 498.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.91e-05/0.1095, allocations: 8.062 kB / 498.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.883e-05/0.1096, allocations: 7.984 kB / 498.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.1096, allocations: 4 kB / 498.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.465e-05/0.1096, allocations: 101.6 kB / 498.6 MB, free: 9.945 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1096, allocations: 0 / 498.6 MB, free: 9.945 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003241/0.11, allocations: 24 kB / 498.6 MB, free: 9.922 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (thetap,deltag,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 (7): * Single equations (assignments): 6 * 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.0005148/0.1105, allocations: 0.7764 MB / 499.4 MB, free: 9.113 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002947/0.1108, allocations: 178.6 kB / 499.6 MB, free: 8.926 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1108, allocations: 0 / 499.6 MB, free: 8.926 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000166/0.111, allocations: 154.8 kB / 499.7 MB, free: 8.762 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002253/0.1112, allocations: 11.94 kB / 499.7 MB, free: 8.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.1131, allocations: 1.797 MB / 0.4898 GB, free: 6.848 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002709/0.1134, allocations: 0.7002 MB / 0.4904 GB, free: 6.121 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.581e-05/0.1134, allocations: 8.547 kB / 0.4905 GB, free: 6.113 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.949e-05/0.1135, allocations: 27.42 kB / 0.4905 GB, free: 6.086 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1135, allocations: 0 / 0.4905 GB, free: 6.086 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02286/0.1363, allocations: 2.579 MB / 0.493 GB, free: 3.688 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.24, allocations: 12.5 kB / 0.493 GB, free: 3.676 MB / 366.1 MB (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.sim & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_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_order0_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1)