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.001453/0.001453, allocations: 103 kB / 16.35 MB, free: 5.875 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.001691/0.001691, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.243/1.243, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08651/0.08651, allocations: 22.34 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 66.3 kB / 380.1 MB, free: 42.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08351/0.08477, allocations: 54.96 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.002709/0.08752, allocations: 1.669 MB / 436.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006497/0.08819, allocations: 455.1 kB / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.519e-05/0.08827, allocations: 4 kB / 437.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.66e-05/0.08833, allocations: 11.86 kB / 437.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.08851, allocations: 43.64 kB / 437.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.007e-05/0.0886, allocations: 31.95 kB / 437.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001678/0.08877, allocations: 119.5 kB / 437.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.08892, allocations: 25.44 kB / 437.4 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.155e-05/0.08902, allocations: 59.7 kB / 437.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.08913, allocations: 51.77 kB / 437.5 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.254e-05/0.08916, allocations: 12 kB / 437.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.762e-05/0.08918, allocations: 8 kB / 437.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.804e-05/0.08921, allocations: 19.92 kB / 437.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.448e-05/0.08927, allocations: 55.66 kB / 437.6 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001419/0.08942, allocations: 103.5 kB / 437.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.08943, allocations: 4 kB / 437.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.08944, allocations: 0 / 437.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.08945, allocations: 0 / 437.7 MB, free: 11.7 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.0005821/0.09003, allocations: 427 kB / 438.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.09007, allocations: 8.031 kB / 438.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.034e-05/0.09012, allocations: 16.75 kB / 438.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002392/0.09036, allocations: 212.5 kB / 438.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.09039, allocations: 12.12 kB / 438.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.757e-05/0.09042, allocations: 8 kB / 438.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001374/0.09056, allocations: 77.66 kB / 438.5 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.09058, allocations: 4 kB / 438.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.0906, allocations: 8 kB / 438.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.0906, allocations: 0 / 438.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.166e-05/0.0907, allocations: 39.98 kB / 438.5 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005905/0.0913, allocations: 380.5 kB / 438.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003042/0.09161, allocations: 183.6 kB / 439.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.751e-05/0.0917, allocations: 44.84 kB / 439.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.051e-05/0.09172, allocations: 224 / 439.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/0.09175, allocations: 34.5 kB / 439.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 9.92e-07/0.09175, allocations: 0 / 439.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007292/0.09249, allocations: 443.5 kB / 439.6 MB, free: 9.609 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/0.09253, allocations: 55.41 kB / 439.6 MB, free: 9.543 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.09267, allocations: 160.5 kB / 439.8 MB, free: 9.375 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.09269, allocations: 25.7 kB / 439.8 MB, free: 9.344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.435e-05/0.09275, allocations: 112.2 kB / 439.9 MB, free: 9.227 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.685e-05/0.09279, allocations: 47.34 kB / 440 MB, free: 9.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-05/0.09284, allocations: 37.64 kB / 440 MB, free: 9.137 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.261e-05/0.09294, allocations: 322.8 kB / 440.3 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.375e-05/0.093, allocations: 35.98 kB / 440.4 MB, free: 8.777 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.65e-05/0.09307, allocations: 56.69 kB / 440.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003984/0.09347, allocations: 180.2 kB / 440.6 MB, free: 8.531 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.09349, allocations: 3.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.0004211/0.09391, allocations: 346.2 kB / 440.9 MB, free: 8.137 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.09393, allocations: 4 kB / 441 MB, free: 8.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.09394, allocations: 4 kB / 441 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001553/0.0941, allocations: 49.62 kB / 441 MB, free: 8.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.785e-05/0.09421, allocations: 27.92 kB / 441 MB, free: 8.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002338/0.09655, allocations: 4.635 MB / 445.7 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.481e-05/0.09664, allocations: 4.062 kB / 445.7 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.09666, allocations: 11.94 kB / 445.7 MB, free: 3.055 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.0001018/0.09677, allocations: 130.6 kB / 445.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.241e-05/0.09681, allocations: 11.81 kB / 445.8 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.665e-05/0.09684, allocations: 20.7 kB / 445.8 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.09685, allocations: 0 / 445.8 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.09685, allocations: 7.875 kB / 445.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.09686, allocations: 4 kB / 445.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004904/0.09736, allocations: 448.8 kB / 446.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.09737, allocations: 4 kB / 446.3 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.771e-05/0.09747, allocations: 15.98 kB / 446.3 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001154/0.0976, allocations: 44.88 kB / 446.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.09762, allocations: 4 kB / 446.4 MB, free: 2.305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001019/0.09864, allocations: 1.626 MB / 448 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.09866, allocations: 0 / 448 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002981/0.09896, allocations: 293.9 kB / 448.3 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.628e-05/0.09902, allocations: 88.95 kB / 448.4 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.09904, allocations: 0 / 448.4 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.874e-05/0.09915, allocations: 7.938 kB / 448.4 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.635e-05/0.09918, allocations: 12.03 kB / 448.4 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-06/0.09919, allocations: 3.938 kB / 448.4 MB, free: 96 kB / 318.1 MB Notification: Performance of sorting global known variables: time 9.128e-05/0.09929, allocations: 121.7 kB / 448.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09929, allocations: 0 / 448.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000361/0.09966, allocations: 36 kB / 448.5 MB, free: 15.94 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.395e-05/0.09975, allocations: 103.2 kB / 448.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003526/0.1001, allocations: 309.2 kB / 448.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1001, allocations: 0 / 448.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.1003, allocations: 162.9 kB / 449.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.1006, allocations: 20 kB / 449.1 MB, free: 15.31 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007995/0.1014, allocations: 0.4954 MB / 449.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/0.1016, allocations: 0.7163 MB / 450.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.326e-05/0.1017, 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.035e-05/0.1017, allocations: 15.44 kB / 450.4 MB, free: 14.01 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1017, allocations: 0 / 450.4 MB, free: 14.01 MB / 334.1 MB Notification: Performance of Templates: time 0.003855/0.1056, allocations: 1.591 MB / 451.9 MB, free: 12.42 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 cvode -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1)