Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002315/0.002315, allocations: 356.2 kB / 16.57 MB, free: 5.59 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 3.375/3.375, allocations: 388.9 MB / 406.2 MB, free: 11.9 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003088/0.003088, allocations: 247.3 kB / 451.6 MB, free: 14.49 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.6088/0.6088, allocations: 76.01 MB / 0.5594 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000522/0.0005222, allocations: 12 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06543/0.06597, allocations: 53.22 MB / 0.6736 GB, free: 60.83 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.005039/0.07105, allocations: 5.346 MB / 0.6788 GB, free: 55.46 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.003429/0.07452, allocations: 2.561 MB / 0.6813 GB, free: 52.89 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003477/0.07489, allocations: 35.75 kB / 0.6814 GB, free: 52.86 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003341/0.07524, allocations: 103.2 kB / 0.6815 GB, free: 52.75 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008423/0.0761, allocations: 417.6 kB / 0.6819 GB, free: 52.34 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000815/0.07693, allocations: 343.1 kB / 0.6822 GB, free: 52.01 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008151/0.07776, allocations: 1.029 MB / 0.6832 GB, free: 50.97 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009666/0.07874, allocations: 0.621 MB / 0.6838 GB, free: 50.32 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003446/0.0791, allocations: 310.5 kB / 0.6841 GB, free: 50.01 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000377/0.0795, allocations: 354.5 kB / 0.6844 GB, free: 49.66 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 6.645e-05/0.07958, allocations: 31.94 kB / 0.6845 GB, free: 49.63 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004265/0.08002, allocations: 255.3 kB / 0.6847 GB, free: 49.38 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.08017, allocations: 175.4 kB / 0.6849 GB, free: 49.21 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.0803, allocations: 141.3 kB / 0.685 GB, free: 49.07 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006454/0.08095, allocations: 0.752 MB / 0.6857 GB, free: 48.31 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.347e-06/0.08097, allocations: 0 / 0.6857 GB, free: 48.31 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.885e-06/0.08098, allocations: 0 / 0.6857 GB, free: 48.31 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.499e-05/0.08101, allocations: 4 kB / 0.6857 GB, free: 48.31 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001707/0.08272, allocations: 0.9694 MB / 0.6867 GB, free: 47.28 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.12e-05/0.08276, allocations: 12.83 kB / 0.6867 GB, free: 47.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001395/0.08417, allocations: 190.9 kB / 0.6869 GB, free: 47.08 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007722/0.08496, allocations: 0.5005 MB / 0.6874 GB, free: 46.54 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.722e-05/0.08501, allocations: 37.31 kB / 0.6874 GB, free: 46.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.08513, allocations: 63.97 kB / 0.6875 GB, free: 46.44 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.08661, allocations: 0.7646 MB / 0.6882 GB, free: 45.65 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.62e-05/0.08666, allocations: 0 / 0.6882 GB, free: 45.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-05/0.08674, allocations: 27.97 kB / 0.6882 GB, free: 45.62 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.887e-05/0.08679, allocations: 41.23 kB / 0.6883 GB, free: 45.58 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.08838, allocations: 0.735 MB / 0.689 GB, free: 44.84 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003837/0.09224, allocations: 2.704 MB / 0.6916 GB, free: 42.03 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.09374, allocations: 0.6008 MB / 0.6922 GB, free: 41.4 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000771/0.09454, allocations: 366.8 kB / 0.6926 GB, free: 41.04 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.315e-05/0.0946, allocations: 8.422 kB / 0.6926 GB, free: 41.03 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007579/0.09536, allocations: 437.9 kB / 0.693 GB, free: 40.59 MB / 442.7 MB Notification: Performance of pre-optimization done (n=55): time 3.12e-06/0.09538, allocations: 0 / 0.693 GB, free: 40.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=57): time 0.004258/0.09965, allocations: 2.151 MB / 0.6951 GB, free: 38.36 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.0997, allocations: 115.4 kB / 0.6952 GB, free: 38.22 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006406/0.1004, allocations: 441.9 kB / 0.6956 GB, free: 37.78 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.747e-05/0.1004, allocations: 41.7 kB / 0.6957 GB, free: 37.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/0.1006, allocations: 296.5 kB / 0.696 GB, free: 37.44 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001519/0.1008, allocations: 193.2 kB / 0.6961 GB, free: 37.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.289e-05/0.1008, allocations: 12 kB / 0.6962 GB, free: 37.23 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.452e-05/0.1009, allocations: 366.7 kB / 0.6965 GB, free: 36.87 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006484/0.1016, allocations: 293 kB / 0.6968 GB, free: 36.58 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007646/0.1024, allocations: 392.9 kB / 0.6972 GB, free: 36.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006769/0.1031, allocations: 363.7 kB / 0.6975 GB, free: 35.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.1031, allocations: 4 kB / 0.6975 GB, free: 35.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002227/0.1053, allocations: 1.021 MB / 0.6985 GB, free: 34.76 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.334e-05/0.1054, allocations: 185.7 kB / 0.6987 GB, free: 34.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.327e-06/0.1055, allocations: 8 kB / 0.6987 GB, free: 34.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007771/0.1062, allocations: 209.4 kB / 0.6989 GB, free: 34.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005245/0.1068, allocations: 115.9 kB / 0.699 GB, free: 34.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003975/0.1108, allocations: 3.775 MB / 0.7027 GB, free: 30.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005452/0.1113, allocations: 59.94 kB / 0.7027 GB, free: 30.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.94e-05/0.1114, allocations: 23.98 kB / 0.7028 GB, free: 30.07 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.141e-06/0.1114, allocations: 12 kB / 0.7028 GB, free: 30.06 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00175/0.1132, allocations: 0.8518 MB / 0.7036 GB, free: 29.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.419e-06/0.1132, allocations: 0 / 0.7036 GB, free: 29.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005087/0.1137, allocations: 165.8 kB / 0.7038 GB, free: 29.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005912/0.1143, allocations: 115.8 kB / 0.7039 GB, free: 28.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00297/0.1173, allocations: 3.541 MB / 0.7073 GB, free: 25.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005116/0.1179, allocations: 59.89 kB / 0.7074 GB, free: 25.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.13e-05/0.118, allocations: 27.92 kB / 0.7074 GB, free: 25.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003756/0.1183, allocations: 297.5 kB / 0.7077 GB, free: 24.72 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.679e-05/0.1184, allocations: 55.34 kB / 0.7078 GB, free: 24.67 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001695/0.1201, allocations: 0.8381 MB / 0.7086 GB, free: 23.82 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.701e-06/0.1202, allocations: 4 kB / 0.7086 GB, free: 23.81 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1202, allocations: 4 kB / 0.7086 GB, free: 23.81 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.067e-06/0.1202, allocations: 0 / 0.7086 GB, free: 23.81 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0028/0.123, allocations: 1.671 MB / 0.7102 GB, free: 22.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.324e-06/0.123, allocations: 192 / 0.7102 GB, free: 22.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006928/0.1237, allocations: 139.8 kB / 0.7103 GB, free: 21.92 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002874/0.124, allocations: 65.62 kB / 0.7104 GB, free: 21.85 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.259e-05/0.1241, allocations: 16 kB / 0.7104 GB, free: 21.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001605/0.1257, allocations: 2.689 MB / 0.7131 GB, free: 18.87 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.943e-06/0.1257, allocations: 0 / 0.7131 GB, free: 18.87 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002557/0.1283, allocations: 1.337 MB / 0.7144 GB, free: 17.49 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/0.1286, allocations: 176.4 kB / 0.7145 GB, free: 17.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.709e-05/0.1287, allocations: 20 kB / 0.7145 GB, free: 17.28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005201/0.1292, allocations: 63.92 kB / 0.7146 GB, free: 17.22 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.1293, allocations: 56.45 kB / 0.7147 GB, free: 17.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.97e-05/0.1294, allocations: 23.98 kB / 0.7147 GB, free: 17.14 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004491/0.1299, allocations: 311.1 kB / 0.715 GB, free: 16.83 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.1299, allocations: 0 / 0.715 GB, free: 16.83 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001074/0.131, allocations: 256.1 kB / 0.7152 GB, free: 16.58 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001344/0.1311, allocations: 127.3 kB / 0.7153 GB, free: 16.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002867/0.134, allocations: 1.75 MB / 0.7171 GB, free: 14.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.605e-06/0.134, allocations: 4 kB / 0.7171 GB, free: 14.62 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.135, allocations: 0.6105 MB / 0.7177 GB, free: 13.98 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007517/0.1358, allocations: 109.8 kB / 0.7178 GB, free: 13.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002471/0.1383, allocations: 1.752 MB / 0.7195 GB, free: 12.08 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004364/0.1388, allocations: 0.9545 MB / 0.7204 GB, free: 11.1 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005479/0.1393, allocations: 144.4 kB / 0.7205 GB, free: 10.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001717/0.1395, allocations: 43.44 kB / 0.7206 GB, free: 10.91 MB / 442.7 MB Notification: Performance of SimCode: time 1.238e-06/0.1395, allocations: 0 / 0.7206 GB, free: 10.91 MB / 442.7 MB Notification: Performance of Templates: time 0.01663/0.1562, allocations: 8.612 MB / 0.729 GB, free: 2.297 MB / 442.7 MB