Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001362/0.001365, allocations: 187 kB / 16.38 MB, free: 5.598 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.687/1.687, allocations: 194.5 MB / 211.6 MB, free: 8.613 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001865/0.001865, allocations: 112.7 kB / 256.9 MB, free: 11.23 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.2326/0.2326, allocations: 38.01 MB / 340.1 MB, free: 13.56 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000461/0.0004612, allocations: 13.7 kB / 403.8 MB, free: 55.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06736/0.06784, allocations: 53.23 MB / 457 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.004755/0.07264, allocations: 4.594 MB / 461.6 MB, free: 6.062 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002779/0.07544, allocations: 2.064 MB / 463.7 MB, free: 3.996 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003382/0.0758, allocations: 27.88 kB / 463.7 MB, free: 3.969 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003237/0.07614, allocations: 87.31 kB / 463.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007241/0.07688, allocations: 306.5 kB / 464.1 MB, free: 3.586 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007137/0.07761, allocations: 295.3 kB / 464.4 MB, free: 3.297 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005332/0.07816, allocations: 492 kB / 464.9 MB, free: 2.816 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008137/0.07899, allocations: 0.5311 MB / 465.4 MB, free: 2.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003388/0.07935, allocations: 259 kB / 465.6 MB, free: 1.996 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002762/0.07964, allocations: 242.8 kB / 465.9 MB, free: 1.758 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.244e-05/0.07972, allocations: 24 kB / 465.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002994/0.08003, allocations: 151.7 kB / 466 MB, free: 1.586 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.08016, allocations: 127.5 kB / 466.2 MB, free: 1.461 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.08027, allocations: 125.4 kB / 466.3 MB, free: 1.332 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005965/0.08088, allocations: 0.639 MB / 466.9 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.303e-06/0.0809, allocations: 4 kB / 466.9 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.681e-06/0.08091, allocations: 0 / 466.9 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.074e-06/0.08093, allocations: 0 / 466.9 MB, free: 0.6875 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001711/0.08265, allocations: 0.8982 MB / 467.8 MB, free: 15.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.0827, allocations: 16.02 kB / 467.9 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001097/0.08381, allocations: 147 kB / 468 MB, free: 15.57 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009698/0.08479, allocations: 488.6 kB / 468.5 MB, free: 15.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.761e-05/0.08486, allocations: 33 kB / 468.5 MB, free: 15.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.08499, allocations: 51.98 kB / 468.6 MB, free: 14.97 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.08648, allocations: 0.6436 MB / 469.2 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.676e-05/0.08653, allocations: 3.984 kB / 469.2 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.751e-05/0.08664, allocations: 27.95 kB / 469.2 MB, free: 14.26 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.886e-05/0.0867, allocations: 21 kB / 469.3 MB, free: 14.24 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001705/0.08842, allocations: 0.6089 MB / 469.9 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004561/0.093, allocations: 2.473 MB / 472.3 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001897/0.09492, allocations: 0.6582 MB / 473 MB, free: 10.33 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.735e-05/0.09497, allocations: 4 kB / 473 MB, free: 10.33 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007923/0.09578, allocations: 304.7 kB / 473.3 MB, free: 10.01 MB / 314.7 MB Notification: Performance of pre-optimization done (n=40): time 2.929e-06/0.0958, allocations: 0 / 473.3 MB, free: 10.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=40): time 0.002316/0.09813, allocations: 0.7877 MB / 474.1 MB, free: 9.195 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.167e-05/0.09824, allocations: 136.5 kB / 474.2 MB, free: 9.031 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008681/0.09912, allocations: 461.9 kB / 474.7 MB, free: 8.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.56e-05/0.0992, allocations: 41.73 kB / 474.7 MB, free: 8.523 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002783/0.09949, allocations: 284.2 kB / 475 MB, free: 8.242 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001507/0.09965, allocations: 138.1 kB / 475.1 MB, free: 8.105 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.401e-05/0.0997, allocations: 11.94 kB / 475.1 MB, free: 8.094 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002143/0.09992, allocations: 358.8 kB / 475.5 MB, free: 7.734 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006211/0.1006, allocations: 197 kB / 475.7 MB, free: 7.543 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007292/0.1013, allocations: 305.8 kB / 476 MB, free: 7.199 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006711/0.102, allocations: 257.6 kB / 476.2 MB, free: 6.941 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.054e-06/0.102, allocations: 0 / 476.2 MB, free: 6.941 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002244/0.1043, allocations: 0.7877 MB / 477 MB, free: 6.137 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006273/0.1049, allocations: 1.17 MB / 478.2 MB, free: 4.875 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.1049, allocations: 0 / 478.2 MB, free: 4.875 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006317/0.1056, allocations: 156.8 kB / 478.3 MB, free: 4.719 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004616/0.1061, allocations: 91.88 kB / 478.4 MB, free: 4.629 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004251/0.1103, allocations: 2.44 MB / 480.9 MB, free: 2.055 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005947/0.1109, allocations: 95.39 kB / 481 MB, free: 1.961 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.347e-05/0.111, allocations: 20 kB / 481 MB, free: 1.941 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.111, allocations: 4 kB / 481 MB, free: 1.938 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001724/0.1128, allocations: 0.6151 MB / 481.6 MB, free: 1.312 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.1128, allocations: 0 / 481.6 MB, free: 1.312 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004092/0.1132, allocations: 112.8 kB / 481.7 MB, free: 1.199 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004518/0.1137, allocations: 96.06 kB / 481.8 MB, free: 1.105 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003167/0.1169, allocations: 2.17 MB / 484 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000546/0.1174, allocations: 79.52 kB / 484 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.382e-05/0.1175, allocations: 23.98 kB / 484.1 MB, free: 14.7 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003827/0.1179, allocations: 273 kB / 484.3 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.642e-05/0.118, allocations: 51.34 kB / 484.4 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001531/0.1195, allocations: 0.5417 MB / 484.9 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.602e-06/0.1196, allocations: 4 kB / 484.9 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.055e-06/0.1196, allocations: 0 / 484.9 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.1196, allocations: 7.984 kB / 484.9 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002503/0.1221, allocations: 1.166 MB / 486.1 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.915e-06/0.1221, allocations: 0 / 486.1 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000602/0.1228, allocations: 95.81 kB / 486.2 MB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000146/0.1229, allocations: 37.2 kB / 486.2 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.347e-05/0.123, allocations: 12 kB / 486.2 MB, free: 12.44 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001323/0.1243, allocations: 1.355 MB / 487.6 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.408e-06/0.1243, allocations: 4 kB / 487.6 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002124/0.1265, allocations: 0.8914 MB / 488.5 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002928/0.1268, allocations: 176.2 kB / 488.7 MB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.622e-05/0.1269, allocations: 8 kB / 488.7 MB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005058/0.1274, allocations: 51.95 kB / 488.7 MB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.1276, allocations: 35.94 kB / 488.8 MB, free: 9.734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-05/0.1276, allocations: 12 kB / 488.8 MB, free: 9.723 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006302/0.1282, allocations: 335.1 kB / 489.1 MB, free: 9.398 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.57e-07/0.1283, allocations: 0 / 489.1 MB, free: 9.398 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009946/0.1293, allocations: 235.4 kB / 489.3 MB, free: 9.168 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001558/0.1294, allocations: 107.2 kB / 489.4 MB, free: 9.051 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002597/0.132, allocations: 1.141 MB / 490.6 MB, free: 7.859 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.382e-06/0.1321, allocations: 0 / 490.6 MB, free: 7.859 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008855/0.133, allocations: 359.6 kB / 490.9 MB, free: 7.496 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000598/0.1336, allocations: 95.5 kB / 491 MB, free: 7.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002711/0.1363, allocations: 1.42 MB / 492.4 MB, free: 5.961 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006542/0.137, allocations: 0.894 MB / 493.3 MB, free: 5.039 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004573/0.1375, allocations: 108.1 kB / 493.4 MB, free: 4.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001473/0.1376, allocations: 39.38 kB / 493.5 MB, free: 4.891 MB / 330.7 MB Notification: Performance of SimCode: time 1.271e-06/0.1376, allocations: 0 / 493.5 MB, free: 4.891 MB / 330.7 MB Notification: Performance of Templates: time 0.01753/0.1552, allocations: 6.887 MB / 0.4886 GB, free: 14.01 MB / 346.7 MB