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.001139/0.001138, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001159/0.001159, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.379/1.379, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09389/0.09389, allocations: 22.33 MB / 313.4 MB, free: 8.953 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 63.7 kB / 379.4 MB, free: 42.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09228/0.09356, allocations: 54.96 MB / 434.3 MB, free: 15.12 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002954/0.09656, allocations: 1.659 MB / 436 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007431/0.09733, allocations: 463.1 kB / 436.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.859e-05/0.09741, allocations: 4 kB / 436.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.596e-05/0.09746, allocations: 15.8 kB / 436.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001613/0.09764, allocations: 31.75 kB / 436.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.818e-05/0.09774, allocations: 27.91 kB / 436.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001693/0.09792, allocations: 123.6 kB / 436.6 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.09805, allocations: 21.44 kB / 436.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.556e-05/0.09815, allocations: 55.72 kB / 436.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.09827, allocations: 55.75 kB / 436.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.229e-05/0.0983, allocations: 8 kB / 436.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.142e-05/0.09833, allocations: 12 kB / 436.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.224e-05/0.09836, allocations: 27.86 kB / 436.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.56e-05/0.09842, allocations: 51.72 kB / 436.8 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001394/0.09857, allocations: 107.8 kB / 437 MB, free: 12.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.09858, allocations: 0 / 437 MB, free: 12.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09859, allocations: 0 / 437 MB, free: 12.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.0986, allocations: 0 / 437 MB, free: 12.45 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.0006024/0.09921, allocations: 423 kB / 437.4 MB, free: 11.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.09925, allocations: 16.02 kB / 437.4 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.269e-05/0.0993, allocations: 12.75 kB / 437.4 MB, free: 11.96 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.0995, allocations: 214.6 kB / 437.6 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.09952, allocations: 8.125 kB / 437.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.09955, allocations: 8 kB / 437.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001369/0.0997, allocations: 76.02 kB / 437.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.09971, allocations: 0 / 437.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.09973, allocations: 11.94 kB / 437.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.09974, allocations: 0 / 437.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001043/0.09985, allocations: 47.97 kB / 437.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000603/0.1005, allocations: 384.5 kB / 438.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002935/0.1008, allocations: 179.6 kB / 438.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.287e-05/0.1009, allocations: 44.84 kB / 438.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.1009, allocations: 0 / 438.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.1009, allocations: 34.56 kB / 438.4 MB, free: 10.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 9.52e-07/0.1009, allocations: 4 kB / 438.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008107/0.1017, allocations: 443.6 kB / 438.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.085e-05/0.1018, allocations: 59.34 kB / 438.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.1019, allocations: 157.5 kB / 439 MB, free: 10.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.1019, allocations: 29.7 kB / 439.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.791e-05/0.102, allocations: 108.2 kB / 439.2 MB, free: 9.973 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.592e-05/0.1021, allocations: 47.36 kB / 439.2 MB, free: 9.926 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.386e-05/0.1021, allocations: 29.7 kB / 439.2 MB, free: 9.891 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.1022, allocations: 326.8 kB / 439.6 MB, free: 9.562 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.563e-05/0.1023, allocations: 28 kB / 439.6 MB, free: 9.535 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.045e-05/0.1024, allocations: 58.55 kB / 439.6 MB, free: 9.469 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004369/0.1028, allocations: 181.2 kB / 439.8 MB, free: 9.285 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1028, allocations: 3.938 kB / 439.8 MB, free: 9.281 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.000508/0.1034, allocations: 348.8 kB / 440.2 MB, free: 8.891 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.1034, allocations: 4 kB / 440.2 MB, free: 8.887 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1034, allocations: 7.938 kB / 440.2 MB, free: 8.879 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001674/0.1036, allocations: 49.62 kB / 440.2 MB, free: 8.824 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.1037, allocations: 31.98 kB / 440.3 MB, free: 8.793 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002608/0.1063, allocations: 4.633 MB / 444.9 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.034e-05/0.1064, allocations: 0 / 444.9 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.1064, allocations: 11.97 kB / 444.9 MB, free: 3.805 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.0001182/0.1065, allocations: 130.6 kB / 445 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.589e-05/0.1066, allocations: 15.84 kB / 445 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.966e-05/0.1066, allocations: 20.7 kB / 445.1 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1066, allocations: 4.062 kB / 445.1 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.1066, allocations: 0 / 445.1 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1066, allocations: 0 / 445.1 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005306/0.1072, allocations: 456.8 kB / 445.5 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1072, allocations: 0 / 445.5 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.1073, allocations: 19.98 kB / 445.5 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001256/0.1074, allocations: 44.83 kB / 445.6 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.1075, allocations: 8 kB / 445.6 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/0.1086, allocations: 1.615 MB / 447.2 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1086, allocations: 0 / 447.2 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003119/0.1089, allocations: 289.8 kB / 447.5 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.122e-05/0.109, allocations: 89.05 kB / 447.6 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.109, allocations: 4 kB / 447.6 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.942e-05/0.1091, allocations: 4 kB / 447.6 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.216e-05/0.1092, allocations: 11.98 kB / 447.6 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.1092, allocations: 11.94 kB / 447.6 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.665e-05/0.1093, allocations: 117.1 kB / 447.7 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1093, allocations: 0 / 447.7 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003944/0.1097, allocations: 32 kB / 447.7 MB, free: 0.6992 MB / 318.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.0001018/0.1098, allocations: 99.19 kB / 447.8 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004101/0.1102, allocations: 333.3 kB / 448.2 MB, free: 248 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.1102, allocations: 0 / 448.2 MB, free: 248 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001675/0.1104, allocations: 154.6 kB / 448.3 MB, free: 80 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003024/0.1107, allocations: 20.17 kB / 448.3 MB, free: 60 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009334/0.1117, allocations: 0.5324 MB / 448.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/0.1119, allocations: 0.7085 MB / 449.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.213e-05/0.112, allocations: 19.44 kB / 449.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.112, allocations: 0 / 449.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of Templates: time 0.0037/0.1157, allocations: 2.154 MB / 451.8 MB, free: 12.57 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 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1)