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.005166/0.005166, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001097/0.001097, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2564/0.2564, allocations: 22.36 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 65.61 kB / 434.5 MB, free: 35.45 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09804/0.09923, allocations: 54.96 MB / 489.4 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002033/0.1013, allocations: 1.608 MB / 491 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005103/0.1018, allocations: 435.1 kB / 491.4 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.798e-05/0.1019, allocations: 8 kB / 491.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.197e-05/0.102, allocations: 7.875 kB / 491.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001643/0.1021, allocations: 31.77 kB / 491.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.743e-05/0.1022, allocations: 15.97 kB / 491.5 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.473e-05/0.1023, allocations: 107.6 kB / 491.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.1024, allocations: 26.81 kB / 491.6 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.973e-05/0.1025, allocations: 55.77 kB / 491.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.715e-05/0.1026, allocations: 43.78 kB / 491.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.731e-05/0.1026, allocations: 8 kB / 491.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.374e-05/0.1026, allocations: 8 kB / 491.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.286e-05/0.1026, allocations: 27.84 kB / 491.8 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.912e-05/0.1027, allocations: 47.73 kB / 491.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.727e-05/0.1028, allocations: 84.47 kB / 491.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1028, allocations: 4 kB / 491.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1028, allocations: 4 kB / 491.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.1028, allocations: 0 / 491.9 MB, free: 1.309 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0004585/0.1033, allocations: 403.1 kB / 492.3 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.1033, allocations: 8.031 kB / 492.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.659e-05/0.1034, allocations: 38.75 kB / 492.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.854e-05/0.1034, allocations: 12.75 kB / 492.4 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.1035, allocations: 202.2 kB / 492.6 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.1036, allocations: 8.375 kB / 492.6 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.545e-05/0.1036, allocations: 12.12 kB / 492.6 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001207/0.1037, allocations: 81.66 kB / 492.7 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.1037, allocations: 0 / 492.7 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-06/0.1038, allocations: 0 / 492.7 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1038, allocations: 7.984 kB / 492.7 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.892e-05/0.1038, allocations: 43.92 kB / 492.7 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004585/0.1043, allocations: 368.5 kB / 493.1 MB, free: 0 / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/0.1046, allocations: 98.69 kB / 493.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.332e-05/0.1046, allocations: 36.84 kB / 493.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.174e-05/0.1046, allocations: 4 kB / 493.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.685e-05/0.1047, allocations: 30.56 kB / 493.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.032e-06/0.1047, allocations: 0 / 493.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006946/0.1054, allocations: 422.9 kB / 493.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.1054, allocations: 59.34 kB / 493.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.1056, allocations: 148.2 kB / 493.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.1056, allocations: 25.7 kB / 493.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.13e-05/0.1056, allocations: 108.6 kB / 494 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.129e-05/0.1057, allocations: 43.28 kB / 494 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.557e-05/0.1057, allocations: 29.72 kB / 494.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.1058, allocations: 322.8 kB / 494.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.032e-05/0.1059, allocations: 31.98 kB / 494.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.63e-05/0.106, allocations: 50.56 kB / 494.5 MB, free: 14.49 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004956/0.1065, allocations: 239.8 kB / 494.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1065, allocations: 11.88 kB / 494.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003944/0.1069, allocations: 148.7 kB / 494.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.1069, allocations: 12.05 kB / 494.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.1069, allocations: 4 kB / 494.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001454/0.1071, allocations: 28.84 kB / 494.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.564e-05/0.1072, allocations: 31.92 kB / 494.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/0.1085, allocations: 1.611 MB / 496.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.442e-05/0.1086, allocations: 0 / 496.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.1086, allocations: 8 kB / 496.5 MB, free: 12.22 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 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.0001069/0.1087, allocations: 131.7 kB / 496.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.924e-05/0.1088, allocations: 7.906 kB / 496.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.252e-05/0.1088, allocations: 16.7 kB / 496.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.1088, allocations: 4 kB / 496.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.1088, allocations: 0 / 496.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1088, allocations: 0 / 496.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004615/0.1093, allocations: 448.7 kB / 497.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1093, allocations: 0 / 497.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.463e-05/0.1094, allocations: 16 kB / 497.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000124/0.1095, allocations: 40.81 kB / 497.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.1096, allocations: 8.062 kB / 497.2 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001205/0.1108, allocations: 1.612 MB / 498.8 MB, free: 9.738 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1108, allocations: 0 / 498.8 MB, free: 9.738 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002947/0.1111, allocations: 269.7 kB / 499.1 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.751e-05/0.1112, allocations: 93.27 kB / 499.2 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.1112, allocations: 0 / 499.2 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.856e-05/0.1113, allocations: 4.078 kB / 499.2 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.823e-05/0.1113, allocations: 23.91 kB / 499.2 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.1113, allocations: 0 / 499.2 MB, free: 9.312 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.272e-05/0.1114, allocations: 121.4 kB / 499.3 MB, free: 9.195 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1114, allocations: 0 / 499.3 MB, free: 9.195 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003277/0.1118, allocations: 28 kB / 499.3 MB, free: 9.168 MB / 366.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.0005983/0.1124, allocations: 0.8006 MB / 0.4884 GB, free: 8.332 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003235/0.1127, allocations: 194.7 kB / 0.4886 GB, free: 8.129 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1127, allocations: 0 / 0.4886 GB, free: 8.129 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001491/0.1129, allocations: 158.5 kB / 0.4888 GB, free: 7.961 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.1131, allocations: 8 kB / 0.4888 GB, free: 7.953 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002565/0.1157, allocations: 1.968 MB / 0.4907 GB, free: 5.867 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.116, allocations: 0.7084 MB / 0.4914 GB, free: 5.133 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.807e-05/0.116, allocations: 8.891 kB / 0.4914 GB, free: 5.125 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.34e-05/0.1161, allocations: 31.42 kB / 0.4914 GB, free: 5.094 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1161, allocations: 0 / 0.4914 GB, free: 5.094 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03126/0.1474, allocations: 2.964 MB / 0.4943 GB, free: 2.285 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/10.71, allocations: 15.75 kB / 0.4943 GB, free: 2.27 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1)