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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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: translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00188/0.00188, allocations: 110.4 kB / 15.79 MB, free: 5.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001939/0.001939, allocations: 200.5 kB / 16.73 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 225.6 MB / 243.1 MB, free: 3.695 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09853/0.09853, allocations: 22.69 MB / 318.7 MB, free: 9.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002725/0.002725, allocations: 58.19 kB / 446.8 MB, free: 41.11 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1338, allocations: 58.03 MB / 0.493 GB, free: 10.47 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.00231/0.1361, allocations: 1.674 MB / 0.4947 GB, free: 9.152 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006026/0.1367, allocations: 461.8 kB / 0.4951 GB, free: 8.781 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.376e-05/0.1368, allocations: 8 kB / 0.4951 GB, free: 8.773 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.806e-05/0.1368, allocations: 19.8 kB / 0.4951 GB, free: 8.754 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.137, allocations: 35.7 kB / 0.4952 GB, free: 8.719 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.4e-05/0.1371, allocations: 23.97 kB / 0.4952 GB, free: 8.695 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001406/0.1372, allocations: 123.5 kB / 0.4953 GB, free: 8.574 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.1373, allocations: 25.36 kB / 0.4953 GB, free: 8.547 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.192e-05/0.1374, allocations: 47.84 kB / 0.4954 GB, free: 8.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.006e-05/0.1375, allocations: 55.64 kB / 0.4954 GB, free: 8.445 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.017e-05/0.1375, allocations: 12 kB / 0.4954 GB, free: 8.434 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.738e-05/0.1375, allocations: 12 kB / 0.4954 GB, free: 8.422 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.286e-05/0.1376, allocations: 23.92 kB / 0.4955 GB, free: 8.398 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.485e-05/0.1376, allocations: 51.72 kB / 0.4955 GB, free: 8.348 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.1377, allocations: 103.5 kB / 0.4956 GB, free: 8.246 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1377, allocations: 0 / 0.4956 GB, free: 8.246 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.1377, allocations: 3.938 kB / 0.4956 GB, free: 8.242 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1377, allocations: 0 / 0.4956 GB, free: 8.242 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.0005194/0.1383, allocations: 430.9 kB / 0.496 GB, free: 7.773 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.011e-05/0.1383, allocations: 11.97 kB / 0.496 GB, free: 7.762 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.053e-05/0.1383, allocations: 16.84 kB / 0.4961 GB, free: 7.746 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.1385, allocations: 207.2 kB / 0.4963 GB, free: 7.508 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.1385, allocations: 12.12 kB / 0.4963 GB, free: 7.496 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.289e-05/0.1386, allocations: 7.953 kB / 0.4963 GB, free: 7.488 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.1387, allocations: 87.31 kB / 0.4964 GB, free: 7.398 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1387, allocations: 0 / 0.4964 GB, free: 7.398 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.1387, allocations: 4 kB / 0.4964 GB, free: 7.395 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.1387, allocations: 0 / 0.4964 GB, free: 7.395 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.581e-05/0.1388, allocations: 43.98 kB / 0.4964 GB, free: 7.352 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004664/0.1392, allocations: 384.5 kB / 0.4968 GB, free: 6.926 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002693/0.1395, allocations: 171.6 kB / 0.4969 GB, free: 6.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.15e-05/0.1396, allocations: 44.83 kB / 0.497 GB, free: 6.684 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.1396, allocations: 4 kB / 0.497 GB, free: 6.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.093e-05/0.1396, allocations: 38.5 kB / 0.497 GB, free: 6.633 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.1396, allocations: 0 / 0.497 GB, free: 6.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006369/0.1402, allocations: 443 kB / 0.4974 GB, free: 6.145 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.854e-05/0.1403, allocations: 55.41 kB / 0.4975 GB, free: 6.078 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.1404, allocations: 160.9 kB / 0.4976 GB, free: 5.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.147e-06/0.1404, allocations: 33.7 kB / 0.4977 GB, free: 5.871 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.874e-05/0.1404, allocations: 108.2 kB / 0.4978 GB, free: 5.758 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.1404, allocations: 47.62 kB / 0.4978 GB, free: 5.711 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.843e-05/0.1405, allocations: 37.64 kB / 0.4979 GB, free: 5.668 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.424e-05/0.1405, allocations: 322.8 kB / 0.4982 GB, free: 5.344 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.713e-05/0.1406, allocations: 31.98 kB / 0.4982 GB, free: 5.312 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.599e-05/0.1406, allocations: 60.38 kB / 0.4983 GB, free: 5.246 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003806/0.141, allocations: 179.5 kB / 0.4984 GB, free: 5.066 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.141, allocations: 3.938 kB / 0.4984 GB, free: 5.062 MB / 366.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.0003856/0.1414, allocations: 354.1 kB / 0.4988 GB, free: 4.664 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.1414, allocations: 4 kB / 0.4988 GB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1414, allocations: 4.062 kB / 0.4988 GB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001601/0.1416, allocations: 53.62 kB / 0.4988 GB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.76e-05/0.1417, allocations: 27.92 kB / 0.4989 GB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001803/0.1435, allocations: 4.633 MB / 0.5034 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.72e-05/0.1436, allocations: 8.031 kB / 0.5034 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.1436, allocations: 12.03 kB / 0.5034 GB, free: 15.57 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.0001364/0.1437, allocations: 130.7 kB / 0.5035 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.744e-05/0.1438, allocations: 11.95 kB / 0.5035 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.889e-05/0.1438, allocations: 12.72 kB / 0.5035 GB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1438, allocations: 4 kB / 0.5035 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.1438, allocations: 3.984 kB / 0.5036 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.1438, allocations: 0 / 0.5036 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006415/0.1444, allocations: 460.7 kB / 0.504 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.1444, allocations: 0 / 0.504 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.1445, allocations: 19.98 kB / 0.504 GB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001461/0.1447, allocations: 32.83 kB / 0.504 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.1447, allocations: 12.05 kB / 0.5041 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.1461, allocations: 1.615 MB / 0.5056 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.1461, allocations: 8.016 kB / 0.5056 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003702/0.1465, allocations: 281.7 kB / 0.5059 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.417e-05/0.1465, allocations: 93.08 kB / 0.506 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.1466, allocations: 4 kB / 0.506 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.1467, allocations: 8.188 kB / 0.506 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.692e-05/0.1467, allocations: 11.97 kB / 0.506 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.1467, allocations: 11.92 kB / 0.506 GB, free: 12.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.934e-05/0.1468, allocations: 117.5 kB / 0.5061 GB, free: 12.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1468, allocations: 0 / 0.5061 GB, free: 12.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000403/0.1472, allocations: 32 kB / 0.5062 GB, free: 12.47 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.0001191/0.1473, allocations: 103.2 kB / 0.5063 GB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004331/0.1478, allocations: 313.2 kB / 0.5066 GB, free: 12.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1478, allocations: 0 / 0.5066 GB, free: 12.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001914/0.148, allocations: 162.6 kB / 0.5067 GB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.1483, allocations: 19.98 kB / 0.5067 GB, free: 11.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.1493, allocations: 0.5029 MB / 0.5072 GB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.1497, allocations: 0.7124 MB / 0.5079 GB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.984e-05/0.1497, allocations: 16.55 kB / 0.5079 GB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.902e-05/0.1498, allocations: 15.44 kB / 0.508 GB, free: 10.53 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1498, allocations: 0 / 0.508 GB, free: 10.53 MB / 382.1 MB Notification: Performance of Templates: time 0.005299/0.155, allocations: 1.668 MB / 0.5096 GB, free: 8.867 MB / 382.1 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.makefile (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 & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1)