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.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.001255/0.001255, allocations: 102.6 kB / 16.4 MB, free: 6.504 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.001203/0.001203, allocations: 192.6 kB / 19.36 MB, free: 3.746 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.367/1.367, allocations: 222.9 MB / 245.1 MB, free: 15.02 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.09942/0.09942, allocations: 22.34 MB / 319.6 MB, free: 6.777 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_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: Performance of FrontEnd - loaded program: time 0.00268/0.00268, allocations: 67.89 kB / 443.1 MB, free: 10.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1204, allocations: 54.94 MB / 498.1 MB, free: 3.766 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002817/0.1233, allocations: 1.675 MB / 499.8 MB, free: 2.074 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007742/0.124, allocations: 459 kB / 0.4885 GB, free: 1.625 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.859e-05/0.1241, allocations: 7.938 kB / 0.4885 GB, free: 1.617 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.63e-05/0.1242, allocations: 11.88 kB / 0.4885 GB, free: 1.605 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000189/0.1244, allocations: 35.69 kB / 0.4885 GB, free: 1.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.098e-05/0.1245, allocations: 23.97 kB / 0.4886 GB, free: 1.547 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001908/0.1247, allocations: 127.5 kB / 0.4887 GB, free: 1.422 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.1248, allocations: 25.44 kB / 0.4887 GB, free: 1.395 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.1249, allocations: 55.72 kB / 0.4888 GB, free: 1.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.125, allocations: 55.7 kB / 0.4888 GB, free: 1.285 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.27e-05/0.1251, allocations: 8 kB / 0.4888 GB, free: 1.277 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.325e-05/0.1251, allocations: 8 kB / 0.4888 GB, free: 1.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.29e-05/0.1251, allocations: 27.91 kB / 0.4889 GB, free: 1.242 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.067e-05/0.1252, allocations: 55.66 kB / 0.4889 GB, free: 1.188 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001537/0.1253, allocations: 99.55 kB / 0.489 GB, free: 1.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1254, allocations: 3.938 kB / 0.489 GB, free: 1.086 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1254, allocations: 0 / 0.489 GB, free: 1.086 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1254, allocations: 8 kB / 0.489 GB, free: 1.078 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006419/0.126, allocations: 418.9 kB / 0.4894 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.1261, allocations: 12.03 kB / 0.4894 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.972e-05/0.1262, allocations: 42.73 kB / 0.4895 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.698e-05/0.1262, allocations: 12.84 kB / 0.4895 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.1265, allocations: 212.6 kB / 0.4897 GB, free: 308 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.1265, allocations: 15.94 kB / 0.4897 GB, free: 292 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.1265, allocations: 4 kB / 0.4897 GB, free: 288 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000157/0.1267, allocations: 87.55 kB / 0.4898 GB, free: 196 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.1267, allocations: 0 / 0.4898 GB, free: 196 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-06/0.1267, allocations: 0 / 0.4898 GB, free: 196 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.1267, allocations: 4 kB / 0.4898 GB, free: 192 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001018/0.1268, allocations: 51.92 kB / 0.4898 GB, free: 140 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006471/0.1275, allocations: 388.7 kB / 0.4902 GB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000312/0.1278, allocations: 171.6 kB / 0.4904 GB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.96e-05/0.1279, allocations: 48.83 kB / 0.4904 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.428e-06/0.1279, allocations: 0 / 0.4904 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.1279, allocations: 30.56 kB / 0.4904 GB, free: 15.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 2.925e-06/0.128, allocations: 3.984 kB / 0.4904 GB, free: 15.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008161/0.1288, allocations: 447.8 kB / 0.4909 GB, free: 14.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.1288, allocations: 55.34 kB / 0.4909 GB, free: 14.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.129, allocations: 164.2 kB / 0.4911 GB, free: 14.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.129, allocations: 25.7 kB / 0.4911 GB, free: 14.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.835e-05/0.1291, allocations: 112 kB / 0.4912 GB, free: 14.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.205e-05/0.1292, allocations: 55.53 kB / 0.4913 GB, free: 14.49 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.016e-05/0.1292, allocations: 29.72 kB / 0.4913 GB, free: 14.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1294, allocations: 330.8 kB / 0.4916 GB, free: 14.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.76e-05/0.1294, allocations: 28 kB / 0.4916 GB, free: 14.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.637e-05/0.1295, allocations: 58.45 kB / 0.4917 GB, free: 14.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004486/0.13, allocations: 173.4 kB / 0.4919 GB, free: 13.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.13, allocations: 0 / 0.4919 GB, free: 13.85 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.0005456/0.1305, allocations: 354.3 kB / 0.4922 GB, free: 13.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.1306, allocations: 8 kB / 0.4922 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1306, allocations: 3.938 kB / 0.4922 GB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001863/0.1308, allocations: 57.69 kB / 0.4923 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.1309, allocations: 23.98 kB / 0.4923 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003168/0.1341, allocations: 4.637 MB / 0.4968 GB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.415e-05/0.1342, allocations: 7.938 kB / 0.4968 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.287e-06/0.1342, allocations: 4.031 kB / 0.4968 GB, free: 8.363 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.0001372/0.1343, allocations: 129.8 kB / 0.497 GB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.482e-05/0.1344, allocations: 11.91 kB / 0.497 GB, free: 8.215 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.916e-05/0.1344, allocations: 20.78 kB / 0.497 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1344, allocations: 0 / 0.497 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.1344, allocations: 0 / 0.497 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1344, allocations: 3.938 kB / 0.497 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000598/0.135, allocations: 456.8 kB / 0.4974 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.135, allocations: 0 / 0.4974 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.1352, allocations: 24.05 kB / 0.4974 GB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001439/0.1353, allocations: 36.83 kB / 0.4975 GB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.1353, allocations: 4 kB / 0.4975 GB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001376/0.1367, allocations: 1.615 MB / 0.4991 GB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.1367, allocations: 96 / 0.4991 GB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003666/0.1371, allocations: 301.8 kB / 0.4993 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.676e-05/0.1372, allocations: 89.09 kB / 0.4994 GB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.1372, allocations: 0 / 0.4994 GB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.668e-05/0.1373, allocations: 8.094 kB / 0.4994 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.261e-05/0.1373, allocations: 15.86 kB / 0.4995 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.235e-06/0.1374, allocations: 8 kB / 0.4995 GB, free: 5.402 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001001/0.1375, allocations: 122.1 kB / 0.4996 GB, free: 5.285 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1375, allocations: 4 kB / 0.4996 GB, free: 5.281 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003871/0.1379, allocations: 28 kB / 0.4996 GB, free: 5.254 MB / 382.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.0007255/0.1386, allocations: 0.8192 MB / 0.5004 GB, free: 4.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004483/0.1391, allocations: 320.1 kB / 0.5007 GB, free: 4.066 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1391, allocations: 0 / 0.5007 GB, free: 4.066 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.1393, allocations: 154.9 kB / 0.5009 GB, free: 3.902 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/0.1396, allocations: 34.42 kB / 0.5009 GB, free: 3.871 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.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.002807/0.1424, allocations: 2.446 MB / 0.5033 GB, free: 1.227 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.1427, allocations: 0.7123 MB / 0.504 GB, free: 500 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.983e-05/0.1428, allocations: 12.66 kB / 0.504 GB, free: 488 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.922e-05/0.1429, allocations: 39.42 kB / 0.504 GB, free: 448 kB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1429, allocations: 0 / 0.504 GB, free: 448 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.225/0.3679, allocations: 3.396 MB / 0.5073 GB, free: 20.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.07, allocations: 17.08 kB / 0.5074 GB, free: 20.72 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.608458069968037] Failed to read output from testmodel.py, exit status != 0: 12.158563539967872 12.179274974 12.050439121 Calling exit ...