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.001245/0.001245, allocations: 105.8 kB / 16.4 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.001294/0.001294, allocations: 192.6 kB / 19.36 MB, free: 3.75 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.378/1.378, allocations: 222.9 MB / 245.1 MB, free: 15 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.1343/0.1343, allocations: 22.32 MB / 319.5 MB, free: 6.781 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.001963/0.001963, allocations: 63.88 kB / 443.1 MB, free: 10.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.106, allocations: 54.95 MB / 498.1 MB, free: 3.746 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002602/0.1086, allocations: 1.478 MB / 499.6 MB, free: 2.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006551/0.1093, allocations: 423.1 kB / 500 MB, free: 1.836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.453e-05/0.1094, allocations: 0 / 500 MB, free: 1.836 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.711e-05/0.1094, allocations: 7.938 kB / 500 MB, free: 1.828 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001548/0.1096, allocations: 15.84 kB / 0.4883 GB, free: 1.812 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.904e-05/0.1096, allocations: 19.97 kB / 0.4883 GB, free: 1.793 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 9.926e-05/0.1097, allocations: 63.72 kB / 0.4884 GB, free: 1.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.453e-05/0.1098, allocations: 15.92 kB / 0.4884 GB, free: 1.715 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.62e-05/0.1099, allocations: 27.86 kB / 0.4884 GB, free: 1.688 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.1101, allocations: 43.77 kB / 0.4885 GB, free: 1.645 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.874e-05/0.1101, allocations: 4 kB / 0.4885 GB, free: 1.641 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.571e-05/0.1101, allocations: 4 kB / 0.4885 GB, free: 1.637 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.199e-05/0.1101, allocations: 11.92 kB / 0.4885 GB, free: 1.625 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.181e-05/0.1102, allocations: 27.86 kB / 0.4885 GB, free: 1.598 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 9.38e-05/0.1103, allocations: 43.75 kB / 0.4885 GB, free: 1.555 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1103, allocations: 4 kB / 0.4885 GB, free: 1.551 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1103, allocations: 0 / 0.4885 GB, free: 1.551 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.1103, allocations: 0 / 0.4885 GB, free: 1.551 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005485/0.1108, allocations: 381.4 kB / 0.4889 GB, free: 1.133 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.1109, allocations: 8.031 kB / 0.4889 GB, free: 1.125 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.94e-05/0.111, allocations: 38.75 kB / 0.489 GB, free: 1.078 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.829e-05/0.111, allocations: 8.891 kB / 0.489 GB, free: 1.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001686/0.1112, allocations: 192.2 kB / 0.4891 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.1112, allocations: 384 / 0.4891 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.784e-05/0.1112, allocations: 16.12 kB / 0.4892 GB, free: 0.8281 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001168/0.1113, allocations: 61.61 kB / 0.4892 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.1114, allocations: 0 / 0.4892 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-06/0.1114, allocations: 4 kB / 0.4892 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.1114, allocations: 0 / 0.4892 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.224e-05/0.1114, allocations: 39.97 kB / 0.4893 GB, free: 0.7188 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004902/0.1119, allocations: 320.6 kB / 0.4896 GB, free: 364 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002584/0.1122, allocations: 78.83 kB / 0.4896 GB, free: 276 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.053e-05/0.1123, allocations: 36.78 kB / 0.4897 GB, free: 236 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.1123, allocations: 7.984 kB / 0.4897 GB, free: 228 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.1123, allocations: 30.56 kB / 0.4897 GB, free: 188 kB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.212e-06/0.1123, allocations: 0 / 0.4897 GB, free: 188 kB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.000704/0.1131, allocations: 394.8 kB / 0.4901 GB, free: 15.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.1131, allocations: 55.41 kB / 0.4901 GB, free: 15.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.1132, allocations: 130 kB / 0.4903 GB, free: 15.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.1133, allocations: 33.64 kB / 0.4903 GB, free: 15.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.73e-05/0.1133, allocations: 96.28 kB / 0.4904 GB, free: 15.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/0.1134, allocations: 43.69 kB / 0.4904 GB, free: 15.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.59e-05/0.1134, allocations: 25.72 kB / 0.4905 GB, free: 15.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.1135, allocations: 318.8 kB / 0.4908 GB, free: 15 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.575e-05/0.1136, allocations: 27.98 kB / 0.4908 GB, free: 14.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.371e-05/0.1137, allocations: 48.53 kB / 0.4908 GB, free: 14.92 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004183/0.1141, allocations: 218.7 kB / 0.491 GB, free: 14.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1141, allocations: 4 kB / 0.491 GB, free: 14.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002275/0.1143, allocations: 138.5 kB / 0.4912 GB, free: 14.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.1143, allocations: 4 kB / 0.4912 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1144, allocations: 0 / 0.4912 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001445/0.1145, allocations: 32.83 kB / 0.4912 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.041e-05/0.1146, allocations: 27.92 kB / 0.4912 GB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001507/0.1161, allocations: 1.565 MB / 0.4928 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.508e-05/0.1162, allocations: 8.094 kB / 0.4928 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.487e-06/0.1162, allocations: 4.031 kB / 0.4928 GB, free: 12.75 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.0001236/0.1163, allocations: 121.7 kB / 0.4929 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.034e-05/0.1164, allocations: 11.89 kB / 0.4929 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.573e-05/0.1164, allocations: 20.45 kB / 0.4929 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1164, allocations: 3.984 kB / 0.4929 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.1164, allocations: 3.938 kB / 0.4929 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1164, allocations: 4 kB / 0.4929 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004585/0.1169, allocations: 388.1 kB / 0.4933 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1169, allocations: 0 / 0.4933 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.944e-05/0.117, allocations: 12 kB / 0.4933 GB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001249/0.1171, allocations: 40.84 kB / 0.4934 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.1172, allocations: 15.88 kB / 0.4934 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001206/0.1184, allocations: 1.569 MB / 0.4949 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1184, allocations: 4.031 kB / 0.4949 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002815/0.1187, allocations: 245 kB / 0.4951 GB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.043e-05/0.1187, allocations: 89.06 kB / 0.4952 GB, free: 9.992 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.1188, allocations: 0 / 0.4952 GB, free: 9.992 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.647e-05/0.1189, allocations: 8.031 kB / 0.4952 GB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.982e-05/0.1189, allocations: 4 kB / 0.4952 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.1189, allocations: 4 kB / 0.4952 GB, free: 9.977 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.226e-05/0.119, allocations: 99.27 kB / 0.4953 GB, free: 9.879 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.119, allocations: 3.938 kB / 0.4953 GB, free: 9.875 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003258/0.1193, allocations: 24 kB / 0.4954 GB, free: 9.852 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.0006038/0.1199, allocations: 0.7848 MB / 0.4961 GB, free: 9.035 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000335/0.1203, allocations: 174.7 kB / 0.4963 GB, free: 8.852 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1203, allocations: 4 kB / 0.4963 GB, free: 8.848 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000163/0.1204, allocations: 154.6 kB / 0.4964 GB, free: 8.684 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.1207, allocations: 14.94 kB / 0.4965 GB, free: 8.672 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.1228, allocations: 1.805 MB / 0.4982 GB, free: 6.758 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.1232, allocations: 0.6961 MB / 0.4989 GB, free: 6.035 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.039e-05/0.1232, allocations: 12.55 kB / 0.4989 GB, free: 6.023 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.407e-05/0.1233, allocations: 23.44 kB / 0.4989 GB, free: 6 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1233, allocations: 0 / 0.4989 GB, free: 6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02835/0.1517, allocations: 2.58 MB / 0.5015 GB, free: 3.598 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.38, allocations: 15.84 kB / 0.5015 GB, free: 3.586 MB / 382.1 MB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.236691880971193] Failed to read output from testmodel.py, exit status != 0: 11.469659616006538 11.701790743 11.58908215 Calling exit ...