Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 112.5 kB / 17.68 MB, free: 5.496 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.001249/0.001249, allocations: 190.9 kB / 18.62 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.541/1.541, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1778/0.1778, allocations: 37.98 MB / 309.8 MB, free: 5.965 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 71.19 kB / 376.8 MB, free: 2.906 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.281, allocations: 55.24 MB / 432 MB, free: 19.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.007566/0.2886, allocations: 7.526 MB / 439.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004188/0.2928, allocations: 3.019 MB / 442.6 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004402/0.2933, allocations: 27.81 kB / 442.6 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001755/0.2951, allocations: 0.7309 MB / 443.3 MB, free: 8.137 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.001528/0.2966, allocations: 0.6959 MB / 444 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008629/0.2975, allocations: 371.2 kB / 444.4 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001246/0.2987, allocations: 1.344 MB / 445.7 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006764/0.2994, allocations: 0.7169 MB / 446.4 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004929/0.2999, allocations: 0.5526 MB / 447 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006287/0.3006, allocations: 0.6345 MB / 447.6 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.914e-05/0.3007, allocations: 76 kB / 447.7 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008794/0.3016, allocations: 479.1 kB / 448.2 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003287/0.3019, allocations: 446.9 kB / 448.6 MB, free: 2.824 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003887/0.3023, allocations: 0.5093 MB / 449.1 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001231/0.3035, allocations: 1.429 MB / 450.5 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3036, allocations: 0 / 450.5 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3036, allocations: 0 / 450.5 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.3036, allocations: 0 / 450.5 MB, free: 0.8789 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002249/0.3058, allocations: 1.281 MB / 451.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3059, allocations: 11.89 kB / 451.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001204/0.3071, allocations: 203.6 kB / 452 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001665/0.3088, allocations: 0.741 MB / 452.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.912e-05/0.3088, allocations: 62.38 kB / 452.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002329/0.3091, allocations: 107.8 kB / 452.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.3107, allocations: 1.092 MB / 454 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/0.3108, allocations: 4 kB / 454 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.682e-05/0.3109, allocations: 39.98 kB / 454.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001841/0.3111, allocations: 69.95 kB / 454.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.3124, allocations: 0.8704 MB / 455 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005483/0.3179, allocations: 3.973 MB / 459 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006697/0.3186, allocations: 431.8 kB / 459.4 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003979/0.319, allocations: 286.9 kB / 459.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.612e-05/0.3191, allocations: 4.438 kB / 459.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/0.3191, allocations: 39 kB / 459.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 2.034e-06/0.3192, allocations: 0 / 459.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=51): time 0.003246/0.3224, allocations: 1.725 MB / 461.5 MB, free: 5.527 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.624e-05/0.3225, allocations: 85.48 kB / 461.5 MB, free: 5.426 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007292/0.3232, allocations: 0.5859 MB / 462.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.677e-05/0.3233, allocations: 37.7 kB / 462.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003577/0.3237, allocations: 462.6 kB / 462.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.3239, allocations: 193.3 kB / 462.8 MB, free: 4.133 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002162/0.3241, allocations: 146.5 kB / 462.9 MB, free: 3.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.3243, allocations: 382.8 kB / 463.3 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003954/0.3247, allocations: 249.8 kB / 463.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006676/0.3254, allocations: 477 kB / 464 MB, free: 2.797 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.3267, allocations: 0.778 MB / 464.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.3267, allocations: 8 kB / 464.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002265/0.329, allocations: 1.106 MB / 465.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.329, allocations: 8.438 kB / 465.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001463/0.3305, allocations: 0.7951 MB / 466.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007678/0.3313, allocations: 230.3 kB / 466.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005176/0.3318, allocations: 151.7 kB / 467.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006149/0.338, allocations: 5.653 MB / 472.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006171/0.3386, allocations: 35.97 kB / 472.8 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.034e-05/0.3387, allocations: 36.27 kB / 472.8 MB, free: 9.402 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004897/0.3392, allocations: 301.5 kB / 473.1 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.3393, allocations: 75.14 kB / 473.2 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009883/0.3403, allocations: 0.6124 MB / 473.8 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3403, allocations: 4 kB / 473.8 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.3403, allocations: 0 / 473.8 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.3403, allocations: 11.97 kB / 473.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002818/0.3431, allocations: 1.494 MB / 475.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.3432, allocations: 0 / 475.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006158/0.3438, allocations: 119.9 kB / 475.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.3438, allocations: 4.156 kB / 475.4 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.042e-05/0.3439, allocations: 27.92 kB / 475.5 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.296e-05/0.3439, allocations: 7.938 kB / 475.5 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3439, allocations: 3.938 kB / 475.5 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/0.3454, allocations: 0.9244 MB / 476.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005356/0.3459, allocations: 184.2 kB / 476.6 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.398e-05/0.346, allocations: 19.89 kB / 476.6 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003272/0.3464, allocations: 23.98 kB / 476.6 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.632e-05/0.3464, allocations: 28.41 kB / 476.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.77e-05/0.3465, allocations: 15.98 kB / 476.7 MB, free: 5.418 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000645/0.3471, allocations: 423 kB / 477.1 MB, free: 5.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3471, allocations: 0 / 477.1 MB, free: 5.008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009654/0.3481, allocations: 228 kB / 477.3 MB, free: 4.785 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (turboGrp.phi,turboGrp.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003187/0.3484, allocations: 143.2 kB / 477.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001965/0.3504, allocations: 1.042 MB / 478.5 MB, free: 3.551 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.3504, allocations: 0 / 478.5 MB, free: 3.551 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004174/0.3509, allocations: 254.3 kB / 478.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008559/0.3517, allocations: 165.4 kB / 478.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003486/0.3552, allocations: 2.04 MB / 480.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008041/0.3561, allocations: 1.075 MB / 482 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005388/0.3566, allocations: 193.9 kB / 482.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001627/0.3568, allocations: 59.42 kB / 482.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3568, allocations: 0 / 482.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of Templates: time 0.01945/0.3762, allocations: 9.23 MB / 491.5 MB, free: 6.5 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1)