Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_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_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005362/0.005362, allocations: 101.7 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.001384/0.001384, allocations: 192.6 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.286/1.286, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1888/0.1888, allocations: 22.37 MB / 313 MB, free: 12.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 63.91 kB / 378.7 MB, free: 13.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2475, allocations: 54.93 MB / 433.7 MB, free: 38.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.00234/0.2499, allocations: 1.534 MB / 435.2 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000577/0.2505, allocations: 419 kB / 435.6 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.406e-05/0.2505, allocations: 0 / 435.6 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.064e-05/0.2506, allocations: 7.266 kB / 435.6 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001864/0.2508, allocations: 23.12 kB / 435.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.086e-05/0.2509, allocations: 6.359 kB / 435.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.679e-05/0.251, allocations: 69.22 kB / 435.7 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.332e-05/0.251, allocations: 5.656 kB / 435.7 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.2511, allocations: 41.33 kB / 435.8 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.227e-05/0.2512, allocations: 37.25 kB / 435.8 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.2513, allocations: 3.031 kB / 435.8 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.767e-05/0.2513, allocations: 2.812 kB / 435.8 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.992e-05/0.2513, allocations: 14.25 kB / 435.8 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.686e-05/0.2514, allocations: 34.48 kB / 435.8 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.727e-05/0.2514, allocations: 24.86 kB / 435.9 MB, free: 37.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2514, allocations: 0 / 435.9 MB, free: 37.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2514, allocations: 0 / 435.9 MB, free: 37.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.057e-06/0.2514, allocations: 3.938 kB / 435.9 MB, free: 37.22 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004705/0.2519, allocations: 383.7 kB / 436.2 MB, free: 36.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.252, allocations: 11.75 kB / 436.3 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.596e-05/0.252, allocations: 10.59 kB / 436.3 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.2521, allocations: 184.3 kB / 436.4 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.2521, allocations: 3.281 kB / 436.4 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.349e-05/0.2522, allocations: 7.344 kB / 436.5 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.2523, allocations: 65.34 kB / 436.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.2523, allocations: 0 / 436.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.2523, allocations: 4 kB / 436.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.2523, allocations: 3.906 kB / 436.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.274e-05/0.2524, allocations: 37.22 kB / 436.6 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004315/0.2528, allocations: 306 kB / 436.9 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002326/0.2531, allocations: 90.73 kB / 437 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.848e-05/0.2531, allocations: 34.98 kB / 437 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.328e-05/0.2532, allocations: 3.156 kB / 437 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.38e-05/0.2532, allocations: 30.56 kB / 437 MB, free: 36.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.062e-06/0.2532, allocations: 0 / 437 MB, free: 36.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006006/0.2538, allocations: 395.4 kB / 437.4 MB, free: 35.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.314e-05/0.2538, allocations: 51.41 kB / 437.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.249e-05/0.2539, allocations: 130 kB / 437.6 MB, free: 35.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.135e-05/0.2539, allocations: 29.7 kB / 437.6 MB, free: 35.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.279e-05/0.254, allocations: 109.5 kB / 437.7 MB, free: 35.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/0.254, allocations: 32.64 kB / 437.8 MB, free: 35.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.249e-05/0.2541, allocations: 29.75 kB / 437.8 MB, free: 35.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.868e-05/0.2541, allocations: 325 kB / 438.1 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.811e-05/0.2541, allocations: 22.36 kB / 438.1 MB, free: 35.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.75e-05/0.2542, allocations: 44.03 kB / 438.2 MB, free: 35.1 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003572/0.2546, allocations: 219.5 kB / 438.4 MB, free: 34.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2546, allocations: 3.656 kB / 438.4 MB, free: 34.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001888/0.2548, allocations: 141.8 kB / 438.5 MB, free: 34.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.2548, allocations: 5.531 kB / 438.5 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.2548, allocations: 64 / 438.5 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00013/0.2549, allocations: 42.47 kB / 438.6 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.248e-05/0.255, allocations: 23.5 kB / 438.6 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008563/0.2559, allocations: 1.399 MB / 440 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.937e-05/0.256, allocations: 6.172 kB / 440 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.256, allocations: 2.469 kB / 440 MB, free: 33.43 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: Pm = Pcmd. 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 (12): * Single equations (assignments): 11 * 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 prepare postOptimizeDAE: time 8.077e-05/0.2561, allocations: 131.7 kB / 440.1 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.889e-05/0.2561, allocations: 6.906 kB / 440.1 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.763e-05/0.2561, allocations: 15.19 kB / 440.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2561, allocations: 112 / 440.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2562, allocations: 7.406 kB / 440.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.2562, allocations: 0 / 440.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003337/0.2565, allocations: 385.9 kB / 440.5 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2565, allocations: 4.031 kB / 440.5 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.89e-05/0.2566, allocations: 16.53 kB / 440.6 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001113/0.2567, allocations: 39.91 kB / 440.6 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.2567, allocations: 0 / 440.6 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006841/0.2574, allocations: 1.417 MB / 442 MB, free: 31.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2574, allocations: 0 / 442 MB, free: 31.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002132/0.2577, allocations: 249.1 kB / 442.2 MB, free: 31.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.414e-05/0.2577, allocations: 83.92 kB / 442.3 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.2577, allocations: 3.328 kB / 442.3 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.049e-05/0.2578, allocations: 6.406 kB / 442.3 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.014e-05/0.2578, allocations: 13.53 kB / 442.4 MB, free: 31.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.2578, allocations: 2.469 kB / 442.4 MB, free: 31.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.238e-05/0.2579, allocations: 101.9 kB / 442.5 MB, free: 31.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2579, allocations: 4 kB / 442.5 MB, free: 31.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003189/0.2582, allocations: 23.84 kB / 442.5 MB, free: 31.1 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (thetap,deltag,wg) * 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 (7): * Single equations (assignments): 6 * 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 6.228e-05/0.2583, allocations: 100.2 kB / 442.6 MB, free: 31.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000233/0.2585, allocations: 182.9 kB / 442.8 MB, free: 30.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2585, allocations: 0 / 442.8 MB, free: 30.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.2586, allocations: 149.7 kB / 442.9 MB, free: 30.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/0.2589, allocations: 11.5 kB / 442.9 MB, free: 30.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007762/0.2597, allocations: 469.3 kB / 443.4 MB, free: 30.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001551/0.2598, allocations: 0.7022 MB / 444.1 MB, free: 29.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.858e-05/0.2599, allocations: 10 kB / 444.1 MB, free: 29.68 MB / 350.1 MB Notification: Performance of SimCode: time 4.5e-07/0.2599, allocations: 0 / 444.1 MB, free: 29.68 MB / 350.1 MB Notification: Performance of Templates: time 0.002656/0.2625, allocations: 1.347 MB / 445.4 MB, free: 29.61 MB / 350.1 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.makefile (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1)