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.0008914/0.0008915, allocations: 98.48 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 186.1 kB / 16.92 MB, free: 6.75 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.321/1.321, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1981/0.1981, allocations: 22.34 MB / 314.4 MB, free: 13.17 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002992/0.0002993, allocations: 8 kB / 381.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2813, allocations: 55.98 MB / 437.2 MB, free: 38.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.001297/0.2826, allocations: 1.192 MB / 438.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000489/0.2831, allocations: 417.4 kB / 438.8 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.827e-05/0.2832, allocations: 0 / 438.8 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.46e-05/0.2832, allocations: 3.938 kB / 438.8 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.2834, allocations: 14.17 kB / 438.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.027e-05/0.2834, allocations: 14.19 kB / 438.8 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.571e-05/0.2835, allocations: 71.17 kB / 438.9 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.194e-05/0.2836, allocations: 6.219 kB / 438.9 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.989e-05/0.2837, allocations: 34.23 kB / 438.9 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.56e-05/0.2838, allocations: 32.88 kB / 438.9 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.2838, allocations: 6.844 kB / 439 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.309e-05/0.2838, allocations: 5.469 kB / 439 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.916e-05/0.2838, allocations: 20.69 kB / 439 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.714e-05/0.2839, allocations: 48.67 kB / 439 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.687e-05/0.2839, allocations: 23.81 kB / 439.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2839, allocations: 2.562 kB / 439.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2839, allocations: 0 / 439.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.284, allocations: 0 / 439.1 MB, free: 37.17 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.0003872/0.2843, allocations: 379.7 kB / 439.4 MB, free: 36.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.2844, allocations: 8.094 kB / 439.4 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.331e-05/0.2844, allocations: 13.44 kB / 439.4 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.2845, allocations: 181.7 kB / 439.6 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.2846, allocations: 7.25 kB / 439.6 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.2846, allocations: 8.328 kB / 439.6 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001012/0.2847, allocations: 64.72 kB / 439.7 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.2847, allocations: 0 / 439.7 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.2847, allocations: 4 kB / 439.7 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.2847, allocations: 2.594 kB / 439.7 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.588e-05/0.2848, allocations: 27.44 kB / 439.7 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003996/0.2852, allocations: 314 kB / 440 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/0.2854, allocations: 81.86 kB / 440.1 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.701e-05/0.2855, allocations: 37.58 kB / 440.2 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.606e-06/0.2855, allocations: 0 / 440.2 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.553e-05/0.2855, allocations: 37.42 kB / 440.2 MB, free: 36.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.2855, allocations: 7.922 kB / 440.2 MB, free: 36.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005741/0.2861, allocations: 386.1 kB / 440.6 MB, free: 35.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.185e-05/0.2861, allocations: 55.41 kB / 440.6 MB, free: 35.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.444e-05/0.2862, allocations: 138.9 kB / 440.8 MB, free: 35.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.907e-06/0.2862, allocations: 25.7 kB / 440.8 MB, free: 35.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.741e-05/0.2863, allocations: 104.9 kB / 440.9 MB, free: 35.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/0.2863, allocations: 41.53 kB / 440.9 MB, free: 35.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.267e-05/0.2863, allocations: 19.41 kB / 441 MB, free: 35.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.547e-05/0.2864, allocations: 321.2 kB / 441.3 MB, free: 35.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.461e-05/0.2864, allocations: 18.73 kB / 441.3 MB, free: 35.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.529e-05/0.2865, allocations: 51.3 kB / 441.3 MB, free: 35.05 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003421/0.2868, allocations: 220.1 kB / 441.6 MB, free: 34.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.71e-07/0.2868, allocations: 0 / 441.6 MB, free: 34.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000191/0.287, allocations: 138.7 kB / 441.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.2871, allocations: 7.844 kB / 441.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.2871, allocations: 0 / 441.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001283/0.2872, allocations: 36.28 kB / 441.7 MB, free: 34.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.914e-05/0.2873, allocations: 26.75 kB / 441.8 MB, free: 34.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008193/0.2881, allocations: 1.398 MB / 443.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.211e-05/0.2882, allocations: 6.781 kB / 443.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.2882, allocations: 6.656 kB / 443.2 MB, free: 33.39 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 sytem: 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.155e-05/0.2883, allocations: 125.9 kB / 443.3 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.744e-05/0.2883, allocations: 10.56 kB / 443.3 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.118e-05/0.2883, allocations: 18.62 kB / 443.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2884, allocations: 0 / 443.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2884, allocations: 2.594 kB / 443.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.2884, allocations: 96 / 443.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003439/0.2887, allocations: 387.6 kB / 443.7 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2887, allocations: 0 / 443.7 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.259e-05/0.2888, allocations: 11.66 kB / 443.7 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001013/0.2889, allocations: 39.14 kB / 443.8 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.2889, allocations: 10.42 kB / 443.8 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006811/0.2896, allocations: 1.41 MB / 445.2 MB, free: 31.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2896, allocations: 3.984 kB / 445.2 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000213/0.2899, allocations: 255 kB / 445.4 MB, free: 31.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.637e-05/0.2899, allocations: 83.86 kB / 445.5 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.2899, allocations: 2.875 kB / 445.5 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.03e-05/0.29, allocations: 0 / 445.5 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.136e-05/0.29, allocations: 14.3 kB / 445.5 MB, free: 31.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.29, allocations: 3 kB / 445.5 MB, free: 31.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.315e-05/0.2901, allocations: 100.7 kB / 445.6 MB, free: 31.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2901, allocations: 0 / 445.6 MB, free: 31.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003133/0.2904, allocations: 25 kB / 445.6 MB, free: 31.07 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.137e-05/0.2905, allocations: 109.1 kB / 445.8 MB, free: 30.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002289/0.2907, allocations: 180.9 kB / 445.9 MB, free: 30.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2907, allocations: 192 / 445.9 MB, free: 30.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.2908, allocations: 149.5 kB / 446.1 MB, free: 30.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002342/0.2911, allocations: 14.91 kB / 446.1 MB, free: 30.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006589/0.2918, allocations: 0.516 MB / 446.6 MB, free: 30.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001139/0.2919, allocations: 0.7083 MB / 447.3 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.776e-05/0.2919, allocations: 12.66 kB / 447.3 MB, free: 29.61 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2919, allocations: 0 / 447.3 MB, free: 29.61 MB / 350.1 MB Notification: Performance of Templates: time 0.002384/0.2943, allocations: 1.328 MB / 448.7 MB, free: 29.55 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)