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.001163/0.001163, allocations: 104.5 kB / 16.41 MB, free: 6.465 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.001087/0.001087, allocations: 189.8 kB / 17.34 MB, free: 5.719 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.347/1.347, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09449/0.09449, allocations: 22.32 MB / 313.5 MB, free: 8.859 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 59.91 kB / 435.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1273, allocations: 54.95 MB / 490.5 MB, free: 6.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.003424/0.1308, allocations: 1.669 MB / 492.2 MB, free: 5.164 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009864/0.1318, allocations: 463 kB / 492.7 MB, free: 4.711 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.132, allocations: 4 kB / 492.7 MB, free: 4.707 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 6.116e-05/0.1321, allocations: 7.875 kB / 492.7 MB, free: 4.699 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000258/0.1323, allocations: 39.69 kB / 492.7 MB, free: 4.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001239/0.1325, allocations: 23.97 kB / 492.7 MB, free: 4.637 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002342/0.1327, allocations: 123.5 kB / 492.9 MB, free: 4.516 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001725/0.1329, allocations: 29.44 kB / 492.9 MB, free: 4.484 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001473/0.1331, allocations: 51.78 kB / 492.9 MB, free: 4.434 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.1332, allocations: 51.7 kB / 493 MB, free: 4.383 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.237e-05/0.1332, allocations: 12 kB / 493 MB, free: 4.371 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.543e-05/0.1333, allocations: 8 kB / 493 MB, free: 4.363 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.326e-05/0.1333, allocations: 27.91 kB / 493 MB, free: 4.336 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.773e-05/0.1334, allocations: 51.66 kB / 493.1 MB, free: 4.285 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.1336, allocations: 111.5 kB / 493.2 MB, free: 4.176 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1336, allocations: 0 / 493.2 MB, free: 4.176 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1336, allocations: 0 / 493.2 MB, free: 4.176 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.1336, allocations: 0 / 493.2 MB, free: 4.176 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.000779/0.1344, allocations: 419 kB / 493.6 MB, free: 3.719 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.757e-05/0.1345, allocations: 12.03 kB / 493.6 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.376e-05/0.1346, allocations: 16.75 kB / 493.6 MB, free: 3.691 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.1349, allocations: 208.7 kB / 493.8 MB, free: 3.449 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.1349, allocations: 8.125 kB / 493.8 MB, free: 3.441 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.696e-05/0.135, allocations: 15.89 kB / 493.9 MB, free: 3.426 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001912/0.1352, allocations: 79.8 kB / 493.9 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1352, allocations: 0 / 493.9 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.1352, allocations: 8 kB / 493.9 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.1352, allocations: 0 / 493.9 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001119/0.1353, allocations: 43.97 kB / 494 MB, free: 3.293 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007353/0.1361, allocations: 388.5 kB / 494.4 MB, free: 2.863 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003365/0.1364, allocations: 171.6 kB / 494.5 MB, free: 2.668 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.344e-05/0.1365, allocations: 49.05 kB / 494.6 MB, free: 2.617 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.347e-05/0.1366, allocations: 7.875 kB / 494.6 MB, free: 2.609 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.1366, allocations: 34.5 kB / 494.6 MB, free: 2.566 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.1366, allocations: 4 kB / 494.6 MB, free: 2.562 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008915/0.1375, allocations: 443 kB / 495.1 MB, free: 2.074 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.1376, allocations: 55.41 kB / 495.1 MB, free: 2.008 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.1377, allocations: 160.9 kB / 495.3 MB, free: 1.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/0.1378, allocations: 29.7 kB / 495.3 MB, free: 1.805 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.712e-05/0.1378, allocations: 112.2 kB / 495.4 MB, free: 1.688 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.82e-05/0.1379, allocations: 39.45 kB / 495.4 MB, free: 1.648 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.493e-05/0.1379, allocations: 33.62 kB / 495.5 MB, free: 1.609 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1381, allocations: 322.8 kB / 495.8 MB, free: 1.285 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.459e-05/0.1381, allocations: 31.98 kB / 495.8 MB, free: 1.254 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.521e-05/0.1382, allocations: 58.48 kB / 495.9 MB, free: 1.188 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004323/0.1387, allocations: 177.2 kB / 496.1 MB, free: 1.008 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1387, allocations: 3.938 kB / 496.1 MB, free: 1.004 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.0005294/0.1392, allocations: 354.1 kB / 496.4 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.1392, allocations: 4 kB / 496.4 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.1393, allocations: 4 kB / 496.4 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001877/0.1395, allocations: 53.69 kB / 496.5 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.1396, allocations: 27.92 kB / 496.5 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003035/0.1426, allocations: 4.637 MB / 0.4894 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.941e-05/0.1427, allocations: 0 / 0.4894 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.1427, allocations: 7.938 kB / 0.4894 GB, free: 11.52 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.0001442/0.1429, allocations: 138.6 kB / 0.4895 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.456e-05/0.1429, allocations: 11.84 kB / 0.4895 GB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.126e-05/0.143, allocations: 16.72 kB / 0.4896 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.143, allocations: 0 / 0.4896 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.143, allocations: 0 / 0.4896 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.143, allocations: 0 / 0.4896 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005536/0.1435, allocations: 468.6 kB / 0.49 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1436, allocations: 4 kB / 0.49 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.1437, allocations: 19.98 kB / 0.49 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001362/0.1438, allocations: 36.83 kB / 0.4901 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.1438, allocations: 0 / 0.4901 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001146/0.145, allocations: 1.626 MB / 0.4916 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.145, allocations: 0 / 0.4916 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003203/0.1453, allocations: 289.8 kB / 0.4919 GB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.829e-05/0.1454, allocations: 89.05 kB / 0.492 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.1454, allocations: 0 / 0.492 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.623e-05/0.1455, allocations: 4 kB / 0.492 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.974e-05/0.1456, allocations: 19.92 kB / 0.492 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.373e-06/0.1456, allocations: 3.938 kB / 0.492 GB, free: 8.559 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.742e-05/0.1457, allocations: 126.1 kB / 0.4922 GB, free: 8.438 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1457, allocations: 0 / 0.4922 GB, free: 8.438 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003882/0.1461, allocations: 28 kB / 0.4922 GB, free: 8.41 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.0001067/0.1462, allocations: 102.1 kB / 0.4923 GB, free: 8.305 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004336/0.1466, allocations: 317.3 kB / 0.4926 GB, free: 7.969 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1466, allocations: 0 / 0.4926 GB, free: 7.969 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000175/0.1468, allocations: 162.6 kB / 0.4927 GB, free: 7.797 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003275/0.1472, allocations: 21.86 kB / 0.4928 GB, free: 7.777 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009543/0.1481, allocations: 0.5167 MB / 0.4933 GB, free: 7.223 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002814/0.1484, allocations: 0.7085 MB / 0.494 GB, free: 6.488 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.236e-05/0.1485, allocations: 15.44 kB / 0.494 GB, free: 6.473 MB / 382.1 MB Notification: Performance of SimCode: time 1.363e-06/0.1485, allocations: 0 / 0.494 GB, free: 6.473 MB / 382.1 MB Notification: Performance of Templates: time 0.004559/0.153, allocations: 2.177 MB / 0.4961 GB, free: 4.297 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)