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.001691/0.001691, allocations: 109.1 kB / 16.37 MB, free: 5.547 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.001791/0.001791, allocations: 194.5 kB / 17.3 MB, free: 5.184 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.427/1.427, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09134/0.09134, allocations: 22.33 MB / 313.5 MB, free: 8.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 60.8 kB / 380.1 MB, free: 42.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09079/0.09211, allocations: 54.97 MB / 435.1 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002657/0.0948, allocations: 1.663 MB / 436.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006771/0.0955, allocations: 459.1 kB / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.582e-05/0.09557, allocations: 0 / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.745e-05/0.09564, allocations: 11.86 kB / 437.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001649/0.09581, allocations: 35.7 kB / 437.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.648e-05/0.0959, allocations: 23.97 kB / 437.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001675/0.09607, allocations: 123.5 kB / 437.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.0962, allocations: 33.42 kB / 437.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.997e-05/0.0963, allocations: 51.73 kB / 437.5 MB, free: 11.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.823e-05/0.0964, allocations: 51.77 kB / 437.5 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.18e-05/0.09643, allocations: 8 kB / 437.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.092e-05/0.09646, allocations: 8 kB / 437.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.947e-05/0.09649, allocations: 27.91 kB / 437.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.663e-05/0.09656, allocations: 59.66 kB / 437.6 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001336/0.0967, allocations: 103.5 kB / 437.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.09671, allocations: 0 / 437.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.09672, allocations: 0 / 437.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.09673, allocations: 0 / 437.7 MB, free: 11.71 MB / 318.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.0005663/0.0973, allocations: 419 kB / 438.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.09734, allocations: 16.03 kB / 438.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.835e-05/0.09739, allocations: 12.75 kB / 438.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002254/0.09762, allocations: 216.5 kB / 438.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.09764, allocations: 8.125 kB / 438.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.647e-05/0.09767, allocations: 11.94 kB / 438.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001417/0.09782, allocations: 77.66 kB / 438.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.09783, allocations: 4 kB / 438.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.09785, allocations: 4 kB / 438.5 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.09786, allocations: 0 / 438.5 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.513e-05/0.09795, allocations: 43.97 kB / 438.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000578/0.09853, allocations: 388.5 kB / 438.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003061/0.09885, allocations: 175.6 kB / 439.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.719e-05/0.09894, allocations: 44.84 kB / 439.1 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/0.09896, allocations: 224 / 439.1 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.09899, allocations: 46.48 kB / 439.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 2.174e-06/0.099, allocations: 3.984 kB / 439.2 MB, free: 10.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007447/0.09975, allocations: 450 kB / 439.6 MB, free: 9.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.744e-05/0.09979, allocations: 51.41 kB / 439.7 MB, free: 9.539 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.09994, allocations: 160.5 kB / 439.8 MB, free: 9.371 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.09996, allocations: 29.7 kB / 439.9 MB, free: 9.336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.009e-05/0.1, allocations: 116.1 kB / 440 MB, free: 9.215 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.269e-05/0.1001, allocations: 51.3 kB / 440 MB, free: 9.164 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.5e-05/0.1001, allocations: 25.72 kB / 440 MB, free: 9.133 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.1002, allocations: 322.8 kB / 440.4 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.4e-05/0.1003, allocations: 31.98 kB / 440.4 MB, free: 8.777 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.957e-05/0.1004, allocations: 54.55 kB / 440.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004241/0.1008, allocations: 174.4 kB / 440.6 MB, free: 8.535 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1008, allocations: 7.938 kB / 440.6 MB, free: 8.527 MB / 318.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.0004519/0.1013, allocations: 348.8 kB / 441 MB, free: 8.137 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.1013, allocations: 8 kB / 441 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.1013, allocations: 0 / 441 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001789/0.1015, allocations: 57.62 kB / 441 MB, free: 8.066 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.1016, allocations: 23.98 kB / 441 MB, free: 8.043 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002506/0.1041, allocations: 4.625 MB / 445.7 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.092e-05/0.1042, allocations: 4 kB / 445.7 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.98e-05/0.1043, allocations: 11.91 kB / 445.7 MB, free: 3.059 MB / 318.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.0001132/0.1044, allocations: 139.3 kB / 445.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.622e-05/0.1044, allocations: 15.8 kB / 445.8 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.02e-05/0.1044, allocations: 16.72 kB / 445.9 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.1045, allocations: 3.938 kB / 445.9 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-06/0.1045, allocations: 3.938 kB / 445.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1045, allocations: 0 / 445.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005201/0.105, allocations: 464.8 kB / 446.3 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.105, allocations: 0 / 446.3 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.1051, allocations: 19.98 kB / 446.3 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000125/0.1053, allocations: 32.83 kB / 446.4 MB, free: 2.305 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.1053, allocations: 8 kB / 446.4 MB, free: 2.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001123/0.1064, allocations: 1.615 MB / 448 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1064, allocations: 0 / 448 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003301/0.1068, allocations: 289.8 kB / 448.3 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.699e-05/0.1068, allocations: 89.05 kB / 448.4 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.1069, allocations: 0 / 448.4 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.107, allocations: 16 kB / 448.4 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.53e-05/0.107, allocations: 7.984 kB / 448.4 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/0.107, allocations: 7.938 kB / 448.4 MB, free: 96 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001061/0.1071, allocations: 119.2 kB / 448.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1071, allocations: 0 / 448.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003881/0.1075, allocations: 32 kB / 448.5 MB, free: 15.95 MB / 334.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 8.942e-05/0.1076, allocations: 95.25 kB / 448.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003886/0.108, allocations: 317.2 kB / 448.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.108, allocations: 7.938 kB / 449 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001626/0.1082, allocations: 150.7 kB / 449.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003072/0.1085, allocations: 22.61 kB / 449.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009073/0.1095, allocations: 0.4994 MB / 449.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002605/0.1097, allocations: 0.7124 MB / 450.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.494e-05/0.1098, allocations: 12.59 kB / 450.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.312e-05/0.1098, allocations: 19.44 kB / 450.4 MB, free: 14.01 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1098, allocations: 0 / 450.4 MB, free: 14.01 MB / 334.1 MB Notification: Performance of Templates: time 0.004276/0.1141, allocations: 1.588 MB / 452 MB, free: 12.43 MB / 334.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 -s gbode -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1)