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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 106 kB / 16.45 MB, free: 6.488 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.001373/0.001373, allocations: 196.6 kB / 19.41 MB, free: 3.68 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.369/1.369, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.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.09666/0.09666, allocations: 22.69 MB / 325.4 MB, free: 3.547 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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 59.89 kB / 455 MB, free: 3.898 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1083, allocations: 58.03 MB / 0.5011 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002571/0.1109, allocations: 1.474 MB / 0.5025 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007198/0.1116, allocations: 419.2 kB / 0.5029 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.183e-05/0.1116, allocations: 3.938 kB / 0.5029 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.062e-05/0.1117, allocations: 7.938 kB / 0.5029 GB, free: 7.844 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.1119, allocations: 19.84 kB / 0.5029 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 5e-05/0.1119, allocations: 11.97 kB / 0.5029 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000109/0.112, allocations: 67.72 kB / 0.503 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.61e-05/0.1121, allocations: 8.266 kB / 0.503 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000107/0.1122, allocations: 39.78 kB / 0.503 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.675e-05/0.1123, allocations: 39.78 kB / 0.5031 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.939e-05/0.1123, allocations: 0 / 0.5031 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.32e-05/0.1123, allocations: 4 kB / 0.5031 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.644e-05/0.1123, allocations: 23.91 kB / 0.5031 GB, free: 7.633 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.318e-05/0.1124, allocations: 27.86 kB / 0.5031 GB, free: 7.605 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.1125, allocations: 39.72 kB / 0.5032 GB, free: 7.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1125, allocations: 0 / 0.5032 GB, free: 7.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1125, allocations: 0 / 0.5032 GB, free: 7.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.705e-05/0.1125, allocations: 3.984 kB / 0.5032 GB, free: 7.562 MB / 382.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.0006041/0.1131, allocations: 379.2 kB / 0.5035 GB, free: 7.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.1132, allocations: 12.03 kB / 0.5035 GB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.167e-05/0.1132, allocations: 38.75 kB / 0.5036 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.467e-05/0.1133, allocations: 12.88 kB / 0.5036 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/0.1135, allocations: 188.2 kB / 0.5038 GB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.1135, allocations: 4.375 kB / 0.5038 GB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/0.1135, allocations: 12.12 kB / 0.5038 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/0.1137, allocations: 65.61 kB / 0.5039 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.1137, allocations: 0 / 0.5039 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.1137, allocations: 4 kB / 0.5039 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.1137, allocations: 0 / 0.5039 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.443e-05/0.1138, allocations: 35.98 kB / 0.5039 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005659/0.1143, allocations: 320.6 kB / 0.5042 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002975/0.1146, allocations: 78.64 kB / 0.5043 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.677e-05/0.1147, allocations: 33.03 kB / 0.5043 GB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/0.1147, allocations: 3.938 kB / 0.5043 GB, free: 6.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.1147, allocations: 38.56 kB / 0.5043 GB, free: 6.191 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.102e-06/0.1147, allocations: 0 / 0.5043 GB, free: 6.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007929/0.1155, allocations: 387.5 kB / 0.5047 GB, free: 5.758 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.1156, allocations: 51.41 kB / 0.5048 GB, free: 5.695 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.1157, allocations: 137.9 kB / 0.5049 GB, free: 5.551 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.1157, allocations: 29.7 kB / 0.5049 GB, free: 5.516 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.315e-05/0.1158, allocations: 100.3 kB / 0.505 GB, free: 5.414 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.385e-05/0.1158, allocations: 43.67 kB / 0.5051 GB, free: 5.371 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.659e-05/0.1159, allocations: 25.72 kB / 0.5051 GB, free: 5.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.116, allocations: 326.8 kB / 0.5054 GB, free: 5.012 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.609e-05/0.1161, allocations: 19.98 kB / 0.5054 GB, free: 4.992 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.521e-05/0.1161, allocations: 44.53 kB / 0.5055 GB, free: 4.941 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004268/0.1166, allocations: 219.6 kB / 0.5057 GB, free: 4.699 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.1166, allocations: 4 kB / 0.5057 GB, free: 4.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002438/0.1168, allocations: 142.2 kB / 0.5058 GB, free: 4.551 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.1168, allocations: 4 kB / 0.5058 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1168, allocations: 4 kB / 0.5058 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001508/0.117, allocations: 32.83 kB / 0.5058 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.786e-05/0.1171, allocations: 27.98 kB / 0.5059 GB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00162/0.1187, allocations: 1.568 MB / 0.5074 GB, free: 2.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.08e-05/0.1188, allocations: 8.031 kB / 0.5074 GB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.857e-06/0.1188, allocations: 4 kB / 0.5074 GB, free: 2.758 MB / 382.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.0001275/0.1189, allocations: 121.7 kB / 0.5075 GB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.054e-05/0.1189, allocations: 7.953 kB / 0.5075 GB, free: 2.621 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.207e-05/0.119, allocations: 16.44 kB / 0.5076 GB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.119, allocations: 0 / 0.5076 GB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.119, allocations: 7.938 kB / 0.5076 GB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.119, allocations: 3.984 kB / 0.5076 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004873/0.1195, allocations: 384.1 kB / 0.5079 GB, free: 2.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1195, allocations: 0 / 0.5079 GB, free: 2.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.913e-05/0.1195, allocations: 12 kB / 0.5079 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001127/0.1197, allocations: 40.84 kB / 0.508 GB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.1197, allocations: 11.94 kB / 0.508 GB, free: 2.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00129/0.121, allocations: 1.584 MB / 0.5095 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.121, allocations: 0 / 0.5095 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000299/0.1213, allocations: 245.1 kB / 0.5098 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.692e-05/0.1213, allocations: 85.06 kB / 0.5099 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.368e-05/0.1213, allocations: 0 / 0.5099 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.579e-05/0.1214, allocations: 0 / 0.5099 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2095/0.3309, allocations: 10.64 kB / 0.5099 GB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.3309, allocations: 3.453 kB / 0.5099 GB, free: 15.28 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.592e-05/0.331, allocations: 100.3 kB / 0.51 GB, free: 15.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.331, allocations: 0.6562 kB / 0.51 GB, free: 15.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003911/0.3314, allocations: 23.53 kB / 0.51 GB, free: 15.21 MB / 382.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.0004514/0.3318, allocations: 0.7754 MB / 0.5107 GB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002986/0.3321, allocations: 178.6 kB / 0.5109 GB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3321, allocations: 0.6562 kB / 0.5109 GB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001295/0.3323, allocations: 153 kB / 0.5111 GB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000222/0.3325, allocations: 15.8 kB / 0.5111 GB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/0.334, allocations: 1.787 MB / 0.5128 GB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.955e-05/0.3341, allocations: 0.7004 MB / 0.5135 GB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.153e-05/0.3342, allocations: 5.734 kB / 0.5135 GB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.714e-05/0.3342, allocations: 26.06 kB / 0.5135 GB, free: 12.32 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3342, allocations: 0 / 0.5135 GB, free: 12.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02791/0.3621, allocations: 2.608 MB / 0.5161 GB, free: 11.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.88, allocations: 10.28 kB / 0.5161 GB, free: 11.92 MB / 382.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P_fmu --startTime=0 --stopTime=1 --stepSize=0.002 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.307054679840803] Failed to read output from testmodel.py, exit status != 0: 11.967597306706011 11.979733056 11.864931158 Calling exit ...