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.007106/0.007106, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001233/0.001233, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2288/0.2288, allocations: 22.35 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 63.31 kB / 434.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.12, allocations: 54.96 MB / 489.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.00236/0.1224, allocations: 1.681 MB / 491.6 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006569/0.1231, allocations: 459.1 kB / 492 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.885e-05/0.1232, allocations: 3.938 kB / 492 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.385e-05/0.1233, allocations: 11.86 kB / 492 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.1235, allocations: 39.7 kB / 492.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.97e-05/0.1236, allocations: 27.97 kB / 492.1 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001482/0.1238, allocations: 123.5 kB / 492.2 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.1239, allocations: 29.42 kB / 492.3 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001113/0.124, allocations: 43.84 kB / 492.3 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.253e-05/0.1241, allocations: 67.64 kB / 492.4 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.1241, allocations: 8 kB / 492.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.563e-05/0.1242, allocations: 8 kB / 492.4 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.438e-05/0.1242, allocations: 23.91 kB / 492.4 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.044e-05/0.1242, allocations: 51.73 kB / 492.5 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001176/0.1244, allocations: 99.55 kB / 492.6 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1244, allocations: 3.938 kB / 492.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1244, allocations: 0 / 492.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.1244, allocations: 0 / 492.6 MB, free: 0.6523 MB / 350.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.00052/0.1249, allocations: 432.8 kB / 493 MB, free: 188 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.125, allocations: 12.03 kB / 493 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.79e-05/0.125, allocations: 12.75 kB / 493 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000246/0.1253, allocations: 200.8 kB / 493.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.1253, allocations: 12.12 kB / 493.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.958e-05/0.1253, allocations: 11.94 kB / 493.2 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/0.1255, allocations: 92 kB / 493.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.1255, allocations: 4 kB / 493.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.1255, allocations: 0 / 493.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.1255, allocations: 0 / 493.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.785e-05/0.1256, allocations: 39.98 kB / 493.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006212/0.1263, allocations: 392.6 kB / 493.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003247/0.1266, allocations: 175.6 kB / 493.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.868e-05/0.1267, allocations: 48.84 kB / 494 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.1267, allocations: 0 / 494 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.1267, allocations: 38.5 kB / 494 MB, free: 15.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.002e-06/0.1267, allocations: 0 / 494 MB, free: 15.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008463/0.1276, allocations: 442.8 kB / 494.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.668e-05/0.1277, allocations: 51.41 kB / 494.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.1278, allocations: 160.7 kB / 494.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.1279, allocations: 25.7 kB / 494.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.427e-05/0.128, allocations: 108.2 kB / 494.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.093e-05/0.128, allocations: 55.22 kB / 494.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.076e-05/0.1281, allocations: 33.7 kB / 494.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.1282, allocations: 322.8 kB / 495.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.952e-05/0.1283, allocations: 39.89 kB / 495.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.184e-05/0.1283, allocations: 54.5 kB / 495.3 MB, free: 13.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004481/0.1288, allocations: 172.5 kB / 495.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1288, allocations: 3.938 kB / 495.4 MB, free: 13.47 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.0005175/0.1293, allocations: 350.2 kB / 495.8 MB, free: 13.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.1293, allocations: 8 kB / 495.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.758e-06/0.1294, allocations: 0 / 495.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001827/0.1295, allocations: 49.62 kB / 495.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.1297, allocations: 31.92 kB / 495.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/0.1326, allocations: 4.637 MB / 0.4888 GB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.633e-05/0.1327, allocations: 4.062 kB / 0.4888 GB, free: 8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.1327, allocations: 15.91 kB / 0.4888 GB, free: 7.984 MB / 366.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.0001232/0.1328, allocations: 127.9 kB / 0.4889 GB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.565e-05/0.1328, allocations: 7.906 kB / 0.4889 GB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.307e-05/0.1329, allocations: 20.7 kB / 0.4889 GB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1329, allocations: 0 / 0.4889 GB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.1329, allocations: 0 / 0.4889 GB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1329, allocations: 4 kB / 0.4889 GB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005473/0.1335, allocations: 460.7 kB / 0.4894 GB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1335, allocations: 0 / 0.4894 GB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001047/0.1336, allocations: 19.98 kB / 0.4894 GB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001321/0.1337, allocations: 40.88 kB / 0.4894 GB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.1338, allocations: 12 kB / 0.4895 GB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/0.135, allocations: 1.619 MB / 0.491 GB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.135, allocations: 0 / 0.491 GB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003318/0.1353, allocations: 288.6 kB / 0.4913 GB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.879e-05/0.1354, allocations: 89.02 kB / 0.4914 GB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.1354, allocations: 0 / 0.4914 GB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.1355, allocations: 4 kB / 0.4914 GB, free: 5.059 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.735e-05/0.1355, allocations: 15.97 kB / 0.4914 GB, free: 5.043 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.946e-06/0.1356, allocations: 7.938 kB / 0.4914 GB, free: 5.035 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.461e-05/0.1357, allocations: 119.1 kB / 0.4915 GB, free: 4.922 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1357, allocations: 0 / 0.4915 GB, free: 4.922 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004168/0.1361, allocations: 36 kB / 0.4916 GB, free: 4.887 MB / 366.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 9.482e-05/0.1362, allocations: 107.2 kB / 0.4917 GB, free: 4.773 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004124/0.1366, allocations: 313.3 kB / 0.492 GB, free: 4.441 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.1366, allocations: 0 / 0.492 GB, free: 4.441 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.1368, allocations: 162.8 kB / 0.4921 GB, free: 4.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003203/0.1371, allocations: 17.27 kB / 0.4921 GB, free: 4.254 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008933/0.138, allocations: 0.4993 MB / 0.4926 GB, free: 3.723 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002566/0.1383, allocations: 0.7124 MB / 0.4933 GB, free: 2.984 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.849e-05/0.1384, allocations: 12.59 kB / 0.4933 GB, free: 2.969 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.241e-05/0.1384, allocations: 15.44 kB / 0.4934 GB, free: 2.953 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1384, allocations: 3.938 kB / 0.4934 GB, free: 2.949 MB / 366.1 MB Notification: Performance of Templates: time 0.004396/0.1428, allocations: 1.615 MB / 0.4949 GB, free: 1.332 MB / 366.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)