Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 109.4 kB / 17.15 MB, free: 6.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 207.2 kB / 20.11 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.537/1.537, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1096/0.1096, allocations: 24.03 MB / 333.6 MB, free: 1.566 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 70.12 kB / 466.3 MB, free: 32.83 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1093, allocations: 59.55 MB / 0.5135 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.004423/0.1137, allocations: 1.68 MB / 0.5151 GB, free: 12.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.115, allocations: 0.4911 MB / 0.5156 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.1151, allocations: 0 / 0.5156 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.371e-05/0.1152, allocations: 15.86 kB / 0.5156 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003016/0.1155, allocations: 35.7 kB / 0.5157 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001439/0.1156, allocations: 27.95 kB / 0.5157 GB, free: 12.17 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000288/0.1159, allocations: 119.5 kB / 0.5158 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.1161, allocations: 21.42 kB / 0.5158 GB, free: 12.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002689/0.1164, allocations: 67.7 kB / 0.5159 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001563/0.1165, allocations: 47.77 kB / 0.5159 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.53e-05/0.1165, allocations: 12 kB / 0.516 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.792e-05/0.1166, allocations: 12 kB / 0.516 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.905e-05/0.1166, allocations: 15.92 kB / 0.516 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.005e-05/0.1167, allocations: 63.59 kB / 0.516 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002178/0.1169, allocations: 107.5 kB / 0.5161 GB, free: 11.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1169, allocations: 0 / 0.5161 GB, free: 11.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1169, allocations: 0 / 0.5161 GB, free: 11.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.1169, allocations: 0 / 0.5161 GB, free: 11.71 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0008605/0.1178, allocations: 426.9 kB / 0.5166 GB, free: 11.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.1178, allocations: 8.625 kB / 0.5166 GB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.317e-05/0.1179, allocations: 50.69 kB / 0.5166 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.063e-05/0.118, allocations: 8.891 kB / 0.5166 GB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004105/0.1184, allocations: 216.6 kB / 0.5168 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.1184, allocations: 11.94 kB / 0.5168 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.975e-05/0.1184, allocations: 15.94 kB / 0.5169 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002172/0.1187, allocations: 81.61 kB / 0.5169 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.1187, allocations: 0 / 0.5169 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.938e-05/0.1187, allocations: 8 kB / 0.5169 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.1187, allocations: 4 kB / 0.5169 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001302/0.1188, allocations: 39.98 kB / 0.517 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008942/0.1197, allocations: 392.5 kB / 0.5174 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000454/0.1202, allocations: 175.6 kB / 0.5175 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.1203, allocations: 40.84 kB / 0.5176 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.1203, allocations: 4 kB / 0.5176 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.1203, allocations: 34.55 kB / 0.5176 GB, free: 10.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.893e-06/0.1203, allocations: 0 / 0.5176 GB, free: 10.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001224/0.1216, allocations: 452.7 kB / 0.518 GB, free: 9.539 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.1216, allocations: 51.41 kB / 0.5181 GB, free: 9.477 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002684/0.1219, allocations: 160.9 kB / 0.5182 GB, free: 9.309 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.1219, allocations: 25.7 kB / 0.5183 GB, free: 9.277 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.122, allocations: 112 kB / 0.5184 GB, free: 9.164 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.897e-05/0.1221, allocations: 55.53 kB / 0.5184 GB, free: 9.109 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-05/0.1222, allocations: 25.72 kB / 0.5184 GB, free: 9.078 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002074/0.1224, allocations: 326.8 kB / 0.5187 GB, free: 8.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.066e-05/0.1225, allocations: 35.98 kB / 0.5188 GB, free: 8.715 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.1226, allocations: 54.56 kB / 0.5188 GB, free: 8.652 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006107/0.1232, allocations: 172.5 kB / 0.519 GB, free: 8.477 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1232, allocations: 4 kB / 0.519 GB, free: 8.473 MB / 382.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ G.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=18) (initialization): time 0.0006952/0.1239, allocations: 350.2 kB / 0.5193 GB, free: 8.078 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.1239, allocations: 11.98 kB / 0.5193 GB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.1239, allocations: 7.875 kB / 0.5194 GB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002275/0.1242, allocations: 45.69 kB / 0.5194 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.1243, allocations: 20 kB / 0.5194 GB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003955/0.1282, allocations: 4.65 MB / 0.524 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.2e-05/0.1283, allocations: 7.938 kB / 0.524 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.1284, allocations: 12.03 kB / 0.524 GB, free: 2.977 MB / 382.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 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 (14): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.1285, allocations: 125.8 kB / 0.5241 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.815e-05/0.1285, allocations: 11.94 kB / 0.5241 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.974e-05/0.1286, allocations: 16.72 kB / 0.5241 GB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1286, allocations: 0 / 0.5241 GB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-06/0.1286, allocations: 0 / 0.5241 GB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1286, allocations: 3.938 kB / 0.5241 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006228/0.1292, allocations: 460.8 kB / 0.5246 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1292, allocations: 0 / 0.5246 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.1293, allocations: 19.98 kB / 0.5246 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001441/0.1295, allocations: 40.83 kB / 0.5246 GB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.1295, allocations: 8 kB / 0.5246 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001348/0.1308, allocations: 1.619 MB / 0.5262 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1308, allocations: 0 / 0.5262 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003558/0.1312, allocations: 289.9 kB / 0.5265 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.056e-05/0.1312, allocations: 89.09 kB / 0.5266 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.1312, allocations: 0 / 0.5266 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.795e-05/0.1313, allocations: 4 kB / 0.5266 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/0.1314, allocations: 15.92 kB / 0.5266 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.1314, allocations: 0 / 0.5266 GB, free: 32 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001251/0.1315, allocations: 120.5 kB / 0.5267 GB, free: 15.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1315, allocations: 0 / 0.5267 GB, free: 15.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003841/0.1319, allocations: 36 kB / 0.5267 GB, free: 15.88 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (G.thetap,G.deltag,G.wg,Gact.y) * 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 (9): * Single equations (assignments): 8 * 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.0006991/0.1326, allocations: 0.8231 MB / 0.5275 GB, free: 15.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004837/0.1331, allocations: 305.3 kB / 0.5278 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1331, allocations: 0 / 0.5278 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002082/0.1333, allocations: 174.6 kB / 0.528 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.1336, allocations: 22.95 kB / 0.528 GB, free: 14.5 MB / 398.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002962/0.1366, allocations: 2.435 MB / 0.5304 GB, free: 11.87 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003844/0.1369, allocations: 0.7124 MB / 0.5311 GB, free: 11.13 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.72e-05/0.137, allocations: 12.64 kB / 0.5311 GB, free: 11.12 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.574e-05/0.1371, allocations: 31.42 kB / 0.5311 GB, free: 11.09 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1371, allocations: 0 / 0.5311 GB, free: 11.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03291/0.17, allocations: 3.426 MB / 0.5345 GB, free: 7.844 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.59, allocations: 17.53 kB / 0.5345 GB, free: 7.832 MB / 398.1 MB " [Timeout remaining time 647] (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.sim & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_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_1stOrder_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.408303048927337] Failed to read output from testmodel.py, exit status != 0: 12.691251925192773 12.716491162 12.595187217 Calling exit ...