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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002127/0.002127, allocations: 105.5 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002048/0.002048, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 225.6 MB / 247.8 MB, free: 3.746 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1654/0.1654, allocations: 22.68 MB / 325.4 MB, free: 7.914 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 67.05 kB / 455 MB, free: 42.72 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0981/0.09994, allocations: 58.03 MB / 0.501 GB, free: 10.37 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002508/0.1024, allocations: 1.6 MB / 0.5026 GB, free: 8.754 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006291/0.1031, allocations: 455.1 kB / 0.503 GB, free: 8.309 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.322e-05/0.1031, allocations: 0 / 0.503 GB, free: 8.309 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.352e-05/0.1032, allocations: 11.86 kB / 0.503 GB, free: 8.297 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001917/0.1034, allocations: 31.72 kB / 0.5031 GB, free: 8.266 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.672e-05/0.1034, allocations: 19.97 kB / 0.5031 GB, free: 8.246 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 9.402e-05/0.1035, allocations: 99.64 kB / 0.5032 GB, free: 8.148 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.1036, allocations: 31.91 kB / 0.5032 GB, free: 8.117 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.47e-05/0.1037, allocations: 43.73 kB / 0.5033 GB, free: 8.074 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.147e-05/0.1038, allocations: 43.83 kB / 0.5033 GB, free: 8.031 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.1038, allocations: 8 kB / 0.5033 GB, free: 8.023 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.375e-05/0.1039, allocations: 8 kB / 0.5033 GB, free: 8.016 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.14e-05/0.1039, allocations: 23.91 kB / 0.5033 GB, free: 7.992 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.691e-05/0.1039, allocations: 51.61 kB / 0.5034 GB, free: 7.941 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.104, allocations: 91.56 kB / 0.5035 GB, free: 7.852 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.104, allocations: 0 / 0.5035 GB, free: 7.852 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.104, allocations: 0 / 0.5035 GB, free: 7.852 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.328e-05/0.1041, allocations: 4 kB / 0.5035 GB, free: 7.848 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.0005015/0.1046, allocations: 407 kB / 0.5039 GB, free: 7.402 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.1046, allocations: 12.03 kB / 0.5039 GB, free: 7.391 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.602e-05/0.1046, allocations: 42.73 kB / 0.5039 GB, free: 7.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.794e-05/0.1047, allocations: 20.83 kB / 0.5039 GB, free: 7.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.1048, allocations: 188.2 kB / 0.5041 GB, free: 7.098 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.1048, allocations: 8.375 kB / 0.5041 GB, free: 7.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.259e-05/0.1048, allocations: 16.12 kB / 0.5041 GB, free: 7.074 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001353/0.1049, allocations: 79.39 kB / 0.5042 GB, free: 6.992 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.105, allocations: 0 / 0.5042 GB, free: 6.992 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.105, allocations: 0 / 0.5042 GB, free: 6.992 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.105, allocations: 0 / 0.5042 GB, free: 6.992 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.872e-05/0.105, allocations: 43.97 kB / 0.5043 GB, free: 6.949 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004249/0.1055, allocations: 376.4 kB / 0.5046 GB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002433/0.1057, allocations: 94.48 kB / 0.5047 GB, free: 6.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.129e-05/0.1058, allocations: 36.94 kB / 0.5047 GB, free: 6.391 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.301e-05/0.1058, allocations: 0 / 0.5047 GB, free: 6.391 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.389e-05/0.1058, allocations: 38.56 kB / 0.5048 GB, free: 6.344 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 8.42e-07/0.1058, allocations: 0 / 0.5048 GB, free: 6.344 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005803/0.1064, allocations: 415 kB / 0.5052 GB, free: 5.883 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.159e-05/0.1064, allocations: 51.41 kB / 0.5052 GB, free: 5.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.887e-05/0.1065, allocations: 144.2 kB / 0.5054 GB, free: 5.672 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.1065, allocations: 30.36 kB / 0.5054 GB, free: 5.637 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.812e-05/0.1065, allocations: 108 kB / 0.5055 GB, free: 5.527 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/0.1066, allocations: 43.64 kB / 0.5055 GB, free: 5.484 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.657e-05/0.1066, allocations: 37.7 kB / 0.5056 GB, free: 5.441 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.783e-05/0.1066, allocations: 326.8 kB / 0.5059 GB, free: 5.113 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.948e-05/0.1067, allocations: 20 kB / 0.5059 GB, free: 5.094 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.306e-05/0.1067, allocations: 58.48 kB / 0.506 GB, free: 5.027 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003658/0.1071, allocations: 250.1 kB / 0.5062 GB, free: 4.754 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.1071, allocations: 3.938 kB / 0.5062 GB, free: 4.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001899/0.1073, allocations: 142.4 kB / 0.5063 GB, free: 4.602 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.1073, allocations: 8.062 kB / 0.5063 GB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1073, allocations: 0 / 0.5063 GB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001388/0.1075, allocations: 40.83 kB / 0.5064 GB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.498e-05/0.1075, allocations: 23.92 kB / 0.5064 GB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009387/0.1085, allocations: 1.615 MB / 0.508 GB, free: 2.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.726e-05/0.1085, allocations: 8.031 kB / 0.508 GB, free: 2.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.692e-06/0.1086, allocations: 4.094 kB / 0.508 GB, free: 2.758 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 7.966e-05/0.1086, allocations: 138.2 kB / 0.5081 GB, free: 2.617 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.855e-05/0.1087, allocations: 11.95 kB / 0.5081 GB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.924e-05/0.1087, allocations: 12.72 kB / 0.5081 GB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.1087, allocations: 0 / 0.5081 GB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.1087, allocations: 3.938 kB / 0.5082 GB, free: 2.594 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1087, allocations: 3.984 kB / 0.5082 GB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003546/0.109, allocations: 440.8 kB / 0.5086 GB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.109, allocations: 0 / 0.5086 GB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.951e-05/0.1091, allocations: 27.92 kB / 0.5086 GB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001032/0.1092, allocations: 36.89 kB / 0.5086 GB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.1092, allocations: 4 kB / 0.5086 GB, free: 2.023 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006952/0.1099, allocations: 1.616 MB / 0.5102 GB, free: 276 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1099, allocations: 0 / 0.5102 GB, free: 276 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002317/0.1102, allocations: 270.1 kB / 0.5105 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.916e-05/0.1102, allocations: 89.05 kB / 0.5106 GB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.1102, allocations: 4.094 kB / 0.5106 GB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.262e-05/0.1103, allocations: 7.938 kB / 0.5106 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.086e-05/0.1103, allocations: 11.92 kB / 0.5106 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.832e-06/0.1104, allocations: 4 kB / 0.5106 GB, free: 15.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.667e-05/0.1105, allocations: 115.2 kB / 0.5107 GB, free: 15.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1105, allocations: 0 / 0.5107 GB, free: 15.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003278/0.1108, allocations: 31.94 kB / 0.5107 GB, free: 15.7 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.0006375/0.1114, allocations: 0.7914 MB / 0.5115 GB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003274/0.1117, allocations: 202.6 kB / 0.5117 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1117, allocations: 0 / 0.5117 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000173/0.1119, allocations: 158.4 kB / 0.5118 GB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002285/0.1121, allocations: 12 kB / 0.5119 GB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.1145, allocations: 1.967 MB / 0.5138 GB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.1148, allocations: 0.7084 MB / 0.5145 GB, free: 11.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.821e-05/0.1149, allocations: 8.875 kB / 0.5145 GB, free: 11.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.7e-05/0.1149, allocations: 31.42 kB / 0.5145 GB, free: 11.63 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1149, allocations: 0 / 0.5145 GB, free: 11.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02922/0.1442, allocations: 2.993 MB / 0.5174 GB, free: 8.789 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.6, allocations: 12.41 kB / 0.5174 GB, free: 8.781 MB / 382.1 MB " [Timeout remaining time 648] (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 --stepSize=0.002 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.327147800009698] Failed to read output from testmodel.py, exit status != 0: 11.687855281867087 11.701934974 11.595179884 Calling exit ...