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.005507/0.005507, allocations: 101.5 kB / 15.88 MB, free: 5.867 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.001145/0.001145, allocations: 192.9 kB / 16.79 MB, free: 5.809 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.306/1.306, allocations: 222.9 MB / 240.5 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2104/0.2104, allocations: 22.35 MB / 313 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 67.89 kB / 378.7 MB, free: 13.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.24, allocations: 54.93 MB / 433.6 MB, free: 38.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.00236/0.2424, allocations: 1.728 MB / 435.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005443/0.2429, allocations: 458.9 kB / 435.8 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.343e-05/0.243, allocations: 6.938 kB / 435.8 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.445e-05/0.2431, allocations: 7.312 kB / 435.8 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001596/0.2433, allocations: 29.25 kB / 435.9 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.806e-05/0.2433, allocations: 18.62 kB / 435.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001391/0.2435, allocations: 121.2 kB / 436 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.2436, allocations: 32.95 kB / 436 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.216e-05/0.2437, allocations: 49.84 kB / 436.1 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.903e-05/0.2438, allocations: 51.44 kB / 436.1 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.93e-05/0.2438, allocations: 5.25 kB / 436.1 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.985e-05/0.2438, allocations: 7.75 kB / 436.1 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.153e-05/0.2438, allocations: 21.86 kB / 436.2 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.874e-05/0.2439, allocations: 49.59 kB / 436.2 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.701e-05/0.244, allocations: 74.08 kB / 436.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.244, allocations: 0 / 436.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.244, allocations: 0 / 436.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.244, allocations: 4 kB / 436.3 MB, free: 36.84 MB / 350.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.0005032/0.2445, allocations: 428.6 kB / 436.7 MB, free: 36.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.2446, allocations: 10.12 kB / 436.7 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.687e-05/0.2446, allocations: 14.06 kB / 436.7 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.2448, allocations: 200.1 kB / 436.9 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.2448, allocations: 14.83 kB / 436.9 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.566e-05/0.2448, allocations: 8.969 kB / 436.9 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.2449, allocations: 87.05 kB / 437 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.245, allocations: 3.938 kB / 437 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.245, allocations: 0 / 437 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.245, allocations: 3.625 kB / 437 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.767e-05/0.2451, allocations: 40.41 kB / 437.1 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004781/0.2456, allocations: 396 kB / 437.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.2458, allocations: 173.9 kB / 437.6 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.156e-05/0.2459, allocations: 43.58 kB / 437.7 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.928e-06/0.2459, allocations: 4 kB / 437.7 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.153e-05/0.2459, allocations: 33 kB / 437.7 MB, free: 35.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.102e-06/0.2459, allocations: 4 kB / 437.7 MB, free: 35.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006424/0.2466, allocations: 446.2 kB / 438.2 MB, free: 35.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.969e-05/0.2466, allocations: 58.53 kB / 438.2 MB, free: 35.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.2467, allocations: 155.4 kB / 438.4 MB, free: 35.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.958e-06/0.2467, allocations: 29.7 kB / 438.4 MB, free: 35.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.786e-05/0.2468, allocations: 117.7 kB / 438.5 MB, free: 34.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.521e-05/0.2468, allocations: 37.64 kB / 438.5 MB, free: 34.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.004e-05/0.2468, allocations: 35.84 kB / 438.6 MB, free: 34.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.113e-05/0.2469, allocations: 324.8 kB / 438.9 MB, free: 34.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.914e-05/0.2469, allocations: 29.34 kB / 438.9 MB, free: 34.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.525e-05/0.247, allocations: 59.59 kB / 439 MB, free: 34.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003918/0.2474, allocations: 180.6 kB / 439.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2474, allocations: 3.938 kB / 439.2 MB, free: 34.39 MB / 350.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.0004115/0.2478, allocations: 349.6 kB / 439.5 MB, free: 34.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.2479, allocations: 5.594 kB / 439.5 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.2479, allocations: 0 / 439.5 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001496/0.248, allocations: 53.31 kB / 439.6 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.849e-05/0.2481, allocations: 24.2 kB / 439.6 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/0.2496, allocations: 4.236 MB / 443.8 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.235e-05/0.2497, allocations: 6.938 kB / 443.8 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/0.2497, allocations: 10.94 kB / 443.8 MB, free: 29.71 MB / 350.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 9.604e-05/0.2498, allocations: 131.7 kB / 444 MB, free: 29.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.506e-05/0.2498, allocations: 15.31 kB / 444 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.534e-05/0.2499, allocations: 14.78 kB / 444 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.2499, allocations: 0 / 444 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.2499, allocations: 2.469 kB / 444 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2499, allocations: 7.938 kB / 444 MB, free: 29.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004336/0.2503, allocations: 454 kB / 444.4 MB, free: 29.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.2503, allocations: 5.75 kB / 444.5 MB, free: 29.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/0.2504, allocations: 18.41 kB / 444.5 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001209/0.2506, allocations: 41.38 kB / 444.5 MB, free: 29.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.2506, allocations: 15.08 kB / 444.5 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007193/0.2513, allocations: 1.453 MB / 446 MB, free: 27.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2513, allocations: 2.688 kB / 446 MB, free: 27.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002483/0.2516, allocations: 279.4 kB / 446.3 MB, free: 27.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.933e-05/0.2516, allocations: 91.27 kB / 446.3 MB, free: 27.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.2517, allocations: 3.031 kB / 446.3 MB, free: 27.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.2518, allocations: 7.938 kB / 446.4 MB, free: 27.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.177e-05/0.2518, allocations: 9.578 kB / 446.4 MB, free: 27.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.2518, allocations: 2.938 kB / 446.4 MB, free: 27.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.437e-05/0.2519, allocations: 124.4 kB / 446.5 MB, free: 27.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2519, allocations: 0 / 446.5 MB, free: 27.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003725/0.2523, allocations: 29.44 kB / 446.5 MB, free: 27.28 MB / 350.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.492e-05/0.2524, allocations: 105.9 kB / 446.6 MB, free: 27.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000313/0.2527, allocations: 316.1 kB / 446.9 MB, free: 26.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2527, allocations: 0 / 446.9 MB, free: 26.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.2528, allocations: 157.8 kB / 447.1 MB, free: 26.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002962/0.2531, allocations: 19.72 kB / 447.1 MB, free: 26.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007795/0.2539, allocations: 0.5592 MB / 447.7 MB, free: 26.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001158/0.254, allocations: 0.7119 MB / 448.4 MB, free: 25.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.126e-05/0.2541, allocations: 13.34 kB / 448.4 MB, free: 25.66 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2541, allocations: 0 / 448.4 MB, free: 25.66 MB / 350.1 MB Notification: Performance of Templates: time 0.003119/0.2572, allocations: 2.16 MB / 450.5 MB, free: 25.51 MB / 350.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)