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.001283/0.001283, allocations: 112.8 kB / 17.68 MB, free: 5.473 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.001197/0.001197, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.344/1.344, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1754/0.1754, allocations: 37.97 MB / 309.8 MB, free: 5.98 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.001534/0.001534, allocations: 75.03 kB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2477, allocations: 55.24 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.007502/0.2553, allocations: 7.529 MB / 439.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004572/0.2599, allocations: 3.015 MB / 442.6 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004376/0.2603, allocations: 27.81 kB / 442.6 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001612/0.262, allocations: 0.7257 MB / 443.3 MB, free: 8.148 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.001365/0.2633, allocations: 0.6882 MB / 444 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006972/0.264, allocations: 383.2 kB / 444.4 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0011/0.2652, allocations: 1.348 MB / 445.7 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006791/0.2658, allocations: 0.7208 MB / 446.4 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004459/0.2663, allocations: 0.5487 MB / 447 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006346/0.2669, allocations: 0.6268 MB / 447.6 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.428e-05/0.267, allocations: 76 kB / 447.7 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000628/0.2677, allocations: 479.1 kB / 448.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003226/0.268, allocations: 446.9 kB / 448.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000436/0.2685, allocations: 0.5093 MB / 449.1 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001256/0.2697, allocations: 1.425 MB / 450.5 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2697, allocations: 0 / 450.5 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2697, allocations: 0 / 450.5 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.2698, allocations: 0 / 450.5 MB, free: 0.8945 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.002425/0.2722, allocations: 1.281 MB / 451.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.377e-05/0.2723, allocations: 11.89 kB / 451.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001204/0.2735, allocations: 211.5 kB / 452 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001504/0.275, allocations: 0.7372 MB / 452.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.819e-05/0.2751, allocations: 62.36 kB / 452.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002429/0.2753, allocations: 103.8 kB / 452.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.2769, allocations: 1.1 MB / 454 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.041e-05/0.2769, allocations: 0 / 454 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.344e-05/0.277, allocations: 39.98 kB / 454.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001785/0.2772, allocations: 65.97 kB / 454.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001356/0.2786, allocations: 0.8743 MB / 455 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005252/0.2838, allocations: 3.973 MB / 459 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006357/0.2845, allocations: 435.7 kB / 459.4 MB, free: 7.648 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003768/0.2849, allocations: 283 kB / 459.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.164e-05/0.2849, allocations: 4.438 kB / 459.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.285, allocations: 42.94 kB / 459.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 3.086e-06/0.285, allocations: 0 / 459.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=51): time 0.002891/0.2879, allocations: 1.725 MB / 461.5 MB, free: 5.535 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.2879, allocations: 81.55 kB / 461.5 MB, free: 5.438 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006773/0.2886, allocations: 0.5859 MB / 462.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.977e-05/0.2887, allocations: 37.7 kB / 462.2 MB, free: 4.797 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003212/0.289, allocations: 466.6 kB / 462.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.2892, allocations: 193.3 kB / 462.8 MB, free: 4.141 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.2894, allocations: 142.5 kB / 462.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.2895, allocations: 382.7 kB / 463.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003644/0.2899, allocations: 249.8 kB / 463.6 MB, free: 3.367 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005709/0.2905, allocations: 480.9 kB / 464 MB, free: 2.805 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.2915, allocations: 0.778 MB / 464.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.2915, allocations: 4 kB / 464.8 MB, free: 1.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002052/0.2936, allocations: 1.111 MB / 465.9 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.2936, allocations: 12.03 kB / 465.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001301/0.2949, allocations: 0.7911 MB / 466.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007386/0.2957, allocations: 226.3 kB / 466.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005199/0.2962, allocations: 151.8 kB / 467.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005662/0.3019, allocations: 5.657 MB / 472.8 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005698/0.3025, allocations: 35.97 kB / 472.8 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.012e-05/0.3025, allocations: 35.94 kB / 472.8 MB, free: 9.414 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.0004615/0.303, allocations: 309.5 kB / 473.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.3031, allocations: 67.16 kB / 473.2 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009594/0.3041, allocations: 0.6086 MB / 473.8 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3041, allocations: 4 kB / 473.8 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.3041, allocations: 0 / 473.8 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3041, allocations: 4 kB / 473.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002443/0.3066, allocations: 1.494 MB / 475.3 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3066, allocations: 4 kB / 475.3 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000636/0.3072, allocations: 127.9 kB / 475.4 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.3072, allocations: 4.156 kB / 475.4 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.821e-05/0.3073, allocations: 23.92 kB / 475.5 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.404e-06/0.3073, allocations: 7.938 kB / 475.5 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3073, allocations: 3.938 kB / 475.5 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.3085, allocations: 0.9167 MB / 476.4 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002882/0.3088, allocations: 188.1 kB / 476.6 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.917e-05/0.3089, allocations: 19.91 kB / 476.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003194/0.3092, allocations: 23.97 kB / 476.6 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.315e-05/0.3093, allocations: 32.34 kB / 476.6 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.128e-05/0.3093, allocations: 15.98 kB / 476.7 MB, free: 5.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004763/0.3098, allocations: 423 kB / 477.1 MB, free: 5.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3098, allocations: 0 / 477.1 MB, free: 5.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008929/0.3107, allocations: 228 kB / 477.3 MB, free: 4.797 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.0003352/0.311, allocations: 138.9 kB / 477.4 MB, free: 4.652 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.3127, allocations: 1.049 MB / 478.5 MB, free: 3.562 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3127, allocations: 0 / 478.5 MB, free: 3.562 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003447/0.313, allocations: 258.3 kB / 478.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007914/0.3138, allocations: 163.5 kB / 478.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002972/0.3168, allocations: 2.036 MB / 480.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006943/0.3175, allocations: 1.079 MB / 482 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000447/0.318, allocations: 185.9 kB / 482.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.3182, allocations: 59.42 kB / 482.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3182, allocations: 4 kB / 482.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of Templates: time 0.01674/0.3349, allocations: 9.233 MB / 491.5 MB, free: 6.508 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 gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1)