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.001442/0.001442, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001588/0.001588, allocations: 197.7 kB / 16.26 MB, free: 6.625 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.295/1.295, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1904/0.1904, allocations: 22.36 MB / 312.4 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002208/0.002208, allocations: 60.14 kB / 378.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.281, allocations: 54.94 MB / 433.2 MB, free: 38.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002397/0.2834, allocations: 1.533 MB / 434.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005593/0.284, allocations: 424 kB / 435.1 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.116e-05/0.2841, allocations: 0 / 435.1 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.432e-05/0.2841, allocations: 7.266 kB / 435.1 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001673/0.2843, allocations: 18.78 kB / 435.1 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.444e-05/0.2844, allocations: 13.78 kB / 435.2 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.49e-05/0.2844, allocations: 69.14 kB / 435.2 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.156e-05/0.2845, allocations: 8.594 kB / 435.2 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.273e-05/0.2846, allocations: 36.7 kB / 435.3 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.614e-05/0.2847, allocations: 37.55 kB / 435.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.671e-05/0.2847, allocations: 6.938 kB / 435.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.338e-05/0.2847, allocations: 3.875 kB / 435.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.888e-05/0.2848, allocations: 18.98 kB / 435.3 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.05e-05/0.2848, allocations: 21.91 kB / 435.4 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.016e-05/0.2849, allocations: 44.5 kB / 435.4 MB, free: 37.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2849, allocations: 0 / 435.4 MB, free: 37.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2849, allocations: 2.812 kB / 435.4 MB, free: 37.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.83e-06/0.2849, allocations: 0 / 435.4 MB, free: 37.24 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.0004518/0.2854, allocations: 380.1 kB / 435.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.2854, allocations: 11.81 kB / 435.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.834e-05/0.2855, allocations: 13.75 kB / 435.8 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.2856, allocations: 181.6 kB / 436 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.2856, allocations: 2.844 kB / 436 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.198e-05/0.2856, allocations: 9.719 kB / 436 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001039/0.2857, allocations: 61.81 kB / 436 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.2857, allocations: 0 / 436 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.2858, allocations: 6.688 kB / 436.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2858, allocations: 4 kB / 436.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.689e-05/0.2858, allocations: 23.47 kB / 436.1 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003992/0.2862, allocations: 316 kB / 436.4 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002167/0.2865, allocations: 87.53 kB / 436.5 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.737e-05/0.2865, allocations: 42.97 kB / 436.5 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.2865, allocations: 2.781 kB / 436.5 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.588e-05/0.2866, allocations: 30.56 kB / 436.6 MB, free: 36.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.2866, allocations: 0 / 436.6 MB, free: 36.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005704/0.2871, allocations: 381.5 kB / 436.9 MB, free: 35.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.132e-05/0.2872, allocations: 61.97 kB / 437 MB, free: 35.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.393e-05/0.2873, allocations: 136.9 kB / 437.1 MB, free: 35.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.906e-06/0.2873, allocations: 29.7 kB / 437.1 MB, free: 35.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.164e-05/0.2873, allocations: 101.6 kB / 437.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.042e-05/0.2873, allocations: 36.03 kB / 437.3 MB, free: 35.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.688e-05/0.2874, allocations: 33.25 kB / 437.3 MB, free: 35.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.625e-05/0.2874, allocations: 321.8 kB / 437.6 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.599e-05/0.2875, allocations: 21.45 kB / 437.6 MB, free: 35.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.515e-05/0.2875, allocations: 47.83 kB / 437.7 MB, free: 35.12 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003557/0.2879, allocations: 218.9 kB / 437.9 MB, free: 34.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.2879, allocations: 0 / 437.9 MB, free: 34.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001942/0.2881, allocations: 139.9 kB / 438 MB, free: 34.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.2881, allocations: 4.156 kB / 438.1 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.2881, allocations: 2.688 kB / 438.1 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001331/0.2883, allocations: 35.27 kB / 438.1 MB, free: 34.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.431e-05/0.2884, allocations: 28.2 kB / 438.1 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001114/0.2895, allocations: 1.569 MB / 439.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.737e-05/0.2896, allocations: 0 / 439.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.567e-06/0.2896, allocations: 13.25 kB / 439.7 MB, free: 33.29 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.398e-05/0.2897, allocations: 119.6 kB / 439.8 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.824e-05/0.2897, allocations: 13.16 kB / 439.8 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.997e-05/0.2897, allocations: 12.36 kB / 439.8 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.2897, allocations: 2.594 kB / 439.8 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-06/0.2897, allocations: 0 / 439.8 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.2897, allocations: 3.281 kB / 439.8 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003313/0.2901, allocations: 390.3 kB / 440.2 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.2901, allocations: 0 / 440.2 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.573e-05/0.2902, allocations: 14.86 kB / 440.2 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000107/0.2903, allocations: 40.67 kB / 440.3 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.178e-06/0.2903, allocations: 4.031 kB / 440.3 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006827/0.291, allocations: 1.575 MB / 441.9 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.291, allocations: 7.875 kB / 441.9 MB, free: 31.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002027/0.2912, allocations: 239.1 kB / 442.1 MB, free: 31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.44e-05/0.2913, allocations: 91.8 kB / 442.2 MB, free: 30.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.576e-05/0.2913, allocations: 14.28 kB / 442.2 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.765e-05/0.2914, allocations: 0 / 442.2 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.963e-05/0.2914, allocations: 6.094 kB / 442.2 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-06/0.2914, allocations: 6.906 kB / 442.2 MB, free: 30.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.362e-05/0.2914, allocations: 103 kB / 442.3 MB, free: 30.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2915, allocations: 0 / 442.3 MB, free: 30.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003136/0.2918, allocations: 24.34 kB / 442.3 MB, free: 30.8 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 7.056e-05/0.2918, allocations: 107.3 kB / 442.4 MB, free: 30.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002683/0.2921, allocations: 181.8 kB / 442.6 MB, free: 30.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2921, allocations: 0 / 442.6 MB, free: 30.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.2922, allocations: 149 kB / 442.8 MB, free: 30.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002288/0.2925, allocations: 11.61 kB / 442.8 MB, free: 30.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007122/0.2932, allocations: 454.6 kB / 443.2 MB, free: 30.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.2933, allocations: 0.6952 MB / 443.9 MB, free: 29.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.627e-05/0.2934, allocations: 14.06 kB / 443.9 MB, free: 29.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.564e-05/0.2934, allocations: 10.38 kB / 443.9 MB, free: 29.4 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2934, allocations: 0 / 443.9 MB, free: 29.4 MB / 350.1 MB Notification: Performance of Templates: time 0.003106/0.2965, allocations: 1.149 MB / 445.1 MB, free: 29.32 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)