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.001172/0.001172, allocations: 106.9 kB / 15.99 MB, free: 6.359 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.001236/0.001236, allocations: 193.9 kB / 16.91 MB, free: 6.195 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.201/1.201, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08427/0.08427, allocations: 22.32 MB / 313.1 MB, free: 9.027 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 62.05 kB / 378.8 MB, free: 42.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07178/0.07295, allocations: 54.97 MB / 433.8 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002534/0.07552, allocations: 1.716 MB / 435.5 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006178/0.07616, allocations: 459.1 kB / 436 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.172e-05/0.07623, allocations: 4 kB / 436 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.043e-05/0.07628, allocations: 11.92 kB / 436 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001597/0.07646, allocations: 23.84 kB / 436 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.935e-05/0.07653, allocations: 19.97 kB / 436 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001409/0.07668, allocations: 127.5 kB / 436.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.07679, allocations: 29.44 kB / 436.2 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.023e-05/0.07689, allocations: 51.73 kB / 436.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.384e-05/0.07698, allocations: 55.75 kB / 436.3 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.07701, allocations: 8 kB / 436.3 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.688e-05/0.07703, allocations: 8 kB / 436.3 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.241e-05/0.07706, allocations: 23.86 kB / 436.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.7e-05/0.07711, allocations: 55.72 kB / 436.4 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.986e-05/0.0772, allocations: 68.09 kB / 436.4 MB, free: 12.83 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.202e-05/0.07722, allocations: 4 kB / 436.5 MB, free: 12.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.07722, allocations: 3.938 kB / 436.5 MB, free: 12.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.07723, allocations: 4 kB / 436.5 MB, free: 12.82 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.0005583/0.0778, allocations: 427 kB / 436.9 MB, free: 12.35 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.859e-05/0.07783, allocations: 8.031 kB / 436.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.84e-05/0.07788, allocations: 12.75 kB / 436.9 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001885/0.07807, allocations: 213.1 kB / 437.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.07809, allocations: 12.12 kB / 437.1 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.138e-05/0.07812, allocations: 8 kB / 437.1 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000136/0.07826, allocations: 89.66 kB / 437.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.07828, allocations: 0 / 437.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.07829, allocations: 0 / 437.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.0783, allocations: 0 / 437.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.755e-05/0.07838, allocations: 39.98 kB / 437.3 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005335/0.07892, allocations: 392.5 kB / 437.6 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002619/0.07919, allocations: 179.5 kB / 437.8 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.593e-05/0.07927, allocations: 44.84 kB / 437.9 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.046e-05/0.07929, allocations: 4 kB / 437.9 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.856e-05/0.07931, allocations: 30.56 kB / 437.9 MB, free: 11.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.07932, allocations: 4 kB / 437.9 MB, free: 11.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006816/0.08, allocations: 442.9 kB / 438.3 MB, free: 10.71 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.629e-05/0.08004, allocations: 55.34 kB / 438.4 MB, free: 10.65 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.08018, allocations: 160.7 kB / 438.5 MB, free: 10.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.36e-05/0.0802, allocations: 25.7 kB / 438.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.442e-05/0.08026, allocations: 120.2 kB / 438.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.247e-05/0.0803, allocations: 43.34 kB / 438.7 MB, free: 10.28 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.146e-05/0.08035, allocations: 37.64 kB / 438.8 MB, free: 10.24 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.051e-05/0.08045, allocations: 322.8 kB / 439.1 MB, free: 9.914 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.915e-05/0.0805, allocations: 31.98 kB / 439.1 MB, free: 9.883 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.291e-05/0.08057, allocations: 56.91 kB / 439.2 MB, free: 9.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004057/0.08098, allocations: 181.5 kB / 439.3 MB, free: 9.637 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.08099, allocations: 3.938 kB / 439.3 MB, free: 9.633 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.0005147/0.08152, allocations: 346.1 kB / 439.7 MB, free: 9.242 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.08154, allocations: 8 kB / 439.7 MB, free: 9.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.08155, allocations: 0 / 439.7 MB, free: 9.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001764/0.08173, allocations: 61.62 kB / 439.7 MB, free: 9.168 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.08184, allocations: 23.98 kB / 439.8 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00234/0.08419, allocations: 4.629 MB / 444.4 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.864e-05/0.08428, allocations: 8.031 kB / 444.4 MB, free: 4.164 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.889e-06/0.0843, allocations: 7.938 kB / 444.4 MB, free: 4.156 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.0001083/0.08441, allocations: 129.8 kB / 444.5 MB, free: 4.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.241e-05/0.08445, allocations: 11.81 kB / 444.6 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.358e-05/0.08448, allocations: 16.72 kB / 444.6 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.08448, allocations: 4.031 kB / 444.6 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.08449, allocations: 7.984 kB / 444.6 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.0845, allocations: 0 / 444.6 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004805/0.08498, allocations: 460.8 kB / 445 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.085, allocations: 0 / 445 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001023/0.08511, allocations: 19.98 kB / 445.1 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001169/0.08523, allocations: 36.81 kB / 445.1 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.08525, allocations: 4 kB / 445.1 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001017/0.08628, allocations: 1.622 MB / 446.7 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.08629, allocations: 4.031 kB / 446.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002807/0.08658, allocations: 277.7 kB / 447 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.08663, allocations: 89.08 kB / 447.1 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.08666, allocations: 8 kB / 447.1 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.08676, allocations: 4 kB / 447.1 MB, free: 1.223 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.212e-05/0.08679, allocations: 12.03 kB / 447.1 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.0868, allocations: 7.938 kB / 447.1 MB, free: 1.203 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.471e-05/0.08689, allocations: 119.2 kB / 447.2 MB, free: 1.086 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.0869, allocations: 0 / 447.2 MB, free: 1.086 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003588/0.08726, allocations: 28 kB / 447.2 MB, free: 1.059 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 9.174e-05/0.08736, allocations: 106.2 kB / 447.4 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003627/0.08773, allocations: 329.1 kB / 447.7 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.08774, allocations: 0 / 447.7 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.0879, allocations: 162.6 kB / 447.8 MB, free: 440 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.08819, allocations: 10.02 kB / 447.8 MB, free: 432 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008731/0.08907, allocations: 0.5677 MB / 448.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.08933, allocations: 0.7124 MB / 449.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.211e-05/0.08937, allocations: 11.72 kB / 449.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.08938, allocations: 0 / 449.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of Templates: time 0.003293/0.09268, allocations: 2.167 MB / 451.3 MB, free: 12.89 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)