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.002298/0.002298, allocations: 352.4 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.522/3.522, allocations: 388.9 MB / 406.2 MB, free: 12.02 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.003237/0.003236, allocations: 229.7 kB / 451.6 MB, free: 14.6 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.6123/0.6123, allocations: 76 MB / 0.5594 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000476/0.0004762, allocations: 12 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06931/0.06981, allocations: 53.23 MB / 0.6736 GB, free: 60.82 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.004425/0.07427, allocations: 4.718 MB / 0.6782 GB, free: 56.08 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002559/0.07685, allocations: 2.071 MB / 0.6802 GB, free: 54 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003495/0.07721, allocations: 27.88 kB / 0.6803 GB, free: 53.98 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003161/0.07754, allocations: 87.25 kB / 0.6803 GB, free: 53.89 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006896/0.07825, allocations: 306.2 kB / 0.6806 GB, free: 53.59 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006736/0.07894, allocations: 295.2 kB / 0.6809 GB, free: 53.3 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007388/0.0797, allocations: 0.8422 MB / 0.6817 GB, free: 52.45 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007209/0.08043, allocations: 0.5311 MB / 0.6823 GB, free: 51.88 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002926/0.08074, allocations: 258.8 kB / 0.6825 GB, free: 51.63 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000343/0.0811, allocations: 282.7 kB / 0.6828 GB, free: 51.35 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 6.525e-05/0.08118, allocations: 24 kB / 0.6828 GB, free: 51.33 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003194/0.08151, allocations: 163.5 kB / 0.683 GB, free: 51.17 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.08164, allocations: 127.5 kB / 0.6831 GB, free: 51.04 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 9.934e-05/0.08175, allocations: 129.4 kB / 0.6832 GB, free: 50.91 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005381/0.0823, allocations: 0.6468 MB / 0.6838 GB, free: 50.26 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.942e-06/0.08231, allocations: 0 / 0.6838 GB, free: 50.26 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.681e-06/0.08233, allocations: 0 / 0.6838 GB, free: 50.26 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.502e-05/0.08236, allocations: 0 / 0.6838 GB, free: 50.26 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001567/0.08393, allocations: 0.9059 MB / 0.6847 GB, free: 49.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.929e-05/0.08397, allocations: 8.828 kB / 0.6847 GB, free: 49.29 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009234/0.08491, allocations: 147.1 kB / 0.6849 GB, free: 49.15 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007942/0.08572, allocations: 476.7 kB / 0.6853 GB, free: 48.64 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.084e-05/0.08576, allocations: 33 kB / 0.6854 GB, free: 48.61 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.044e-05/0.08587, allocations: 55.91 kB / 0.6854 GB, free: 48.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.08709, allocations: 0.6514 MB / 0.686 GB, free: 47.88 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/0.08713, allocations: 4 kB / 0.686 GB, free: 47.87 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.54e-05/0.08719, allocations: 20 kB / 0.6861 GB, free: 47.85 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.708e-05/0.08724, allocations: 24.98 kB / 0.6861 GB, free: 47.83 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.08856, allocations: 0.6128 MB / 0.6867 GB, free: 47.21 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003194/0.09177, allocations: 2.477 MB / 0.6891 GB, free: 44.61 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001405/0.09319, allocations: 0.623 MB / 0.6897 GB, free: 43.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005128/0.09372, allocations: 221.6 kB / 0.6899 GB, free: 43.72 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.09377, allocations: 4 kB / 0.6899 GB, free: 43.72 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006018/0.09438, allocations: 316.7 kB / 0.6902 GB, free: 43.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 2.705e-06/0.0944, allocations: 4.094 kB / 0.6902 GB, free: 43.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.001775/0.09619, allocations: 0.7765 MB / 0.691 GB, free: 42.58 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.09624, allocations: 136.5 kB / 0.6911 GB, free: 42.42 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006157/0.09687, allocations: 469.8 kB / 0.6916 GB, free: 41.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/0.09692, allocations: 33.7 kB / 0.6916 GB, free: 41.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/0.09714, allocations: 292.1 kB / 0.6919 GB, free: 41.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.09726, allocations: 130.1 kB / 0.692 GB, free: 41.49 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-05/0.09732, allocations: 8 kB / 0.692 GB, free: 41.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.579e-05/0.09741, allocations: 362.8 kB / 0.6924 GB, free: 41.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004786/0.0979, allocations: 197 kB / 0.6925 GB, free: 40.93 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005284/0.09844, allocations: 301.5 kB / 0.6928 GB, free: 40.59 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005223/0.09898, allocations: 265.5 kB / 0.6931 GB, free: 40.32 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.68e-06/0.099, allocations: 0 / 0.6931 GB, free: 40.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001718/0.1007, allocations: 0.7879 MB / 0.6939 GB, free: 39.52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.186e-05/0.1008, allocations: 201 kB / 0.694 GB, free: 39.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.148e-06/0.1008, allocations: 4 kB / 0.6941 GB, free: 39.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006002/0.1014, allocations: 152.8 kB / 0.6942 GB, free: 39.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003878/0.1018, allocations: 95.81 kB / 0.6943 GB, free: 39.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002934/0.1048, allocations: 2.386 MB / 0.6966 GB, free: 36.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005428/0.1054, allocations: 91.5 kB / 0.6967 GB, free: 36.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.909e-05/0.1054, allocations: 15.98 kB / 0.6967 GB, free: 36.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.983e-06/0.1055, allocations: 4 kB / 0.6967 GB, free: 36.39 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001388/0.1068, allocations: 0.6112 MB / 0.6973 GB, free: 35.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.305e-06/0.1069, allocations: 4 kB / 0.6973 GB, free: 35.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003802/0.1073, allocations: 120.7 kB / 0.6974 GB, free: 35.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003809/0.1077, allocations: 96.02 kB / 0.6975 GB, free: 35.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/0.1098, allocations: 2.159 MB / 0.6996 GB, free: 33.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004297/0.1102, allocations: 71.55 kB / 0.6997 GB, free: 33.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.106e-05/0.1103, allocations: 24.06 kB / 0.6997 GB, free: 33.16 MB / 442.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.0002523/0.1106, allocations: 282 kB / 0.7 GB, free: 32.88 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.48e-05/0.1106, allocations: 51.42 kB / 0.7001 GB, free: 32.82 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001231/0.1119, allocations: 0.5378 MB / 0.7006 GB, free: 32.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.958e-06/0.1119, allocations: 4 kB / 0.7006 GB, free: 32.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1119, allocations: 0 / 0.7006 GB, free: 32.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.171e-06/0.1119, allocations: 3.984 kB / 0.7006 GB, free: 32.27 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00204/0.114, allocations: 1.166 MB / 0.7017 GB, free: 31.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.874e-06/0.114, allocations: 3.938 kB / 0.7017 GB, free: 31.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004982/0.1145, allocations: 91.88 kB / 0.7018 GB, free: 30.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001024/0.1146, allocations: 32.84 kB / 0.7018 GB, free: 30.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.741e-05/0.1147, allocations: 11.98 kB / 0.7019 GB, free: 30.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007518/0.1155, allocations: 1.355 MB / 0.7032 GB, free: 29.41 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.505e-06/0.1155, allocations: 4.031 kB / 0.7032 GB, free: 29.41 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001865/0.1173, allocations: 0.8762 MB / 0.704 GB, free: 28.51 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001968/0.1176, allocations: 164.4 kB / 0.7042 GB, free: 28.33 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.079e-05/0.1177, allocations: 8 kB / 0.7042 GB, free: 28.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000502/0.1182, allocations: 47.95 kB / 0.7042 GB, free: 28.27 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.1183, allocations: 43.89 kB / 0.7043 GB, free: 28.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-05/0.1183, allocations: 8 kB / 0.7043 GB, free: 28.22 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005458/0.1189, allocations: 327.1 kB / 0.7046 GB, free: 27.91 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.67e-07/0.1189, allocations: 4 kB / 0.7046 GB, free: 27.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008814/0.1198, allocations: 247.3 kB / 0.7049 GB, free: 27.66 MB / 442.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.00012/0.12, allocations: 111.2 kB / 0.705 GB, free: 27.54 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002006/0.122, allocations: 1.142 MB / 0.7061 GB, free: 26.35 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.071e-06/0.122, allocations: 0 / 0.7061 GB, free: 26.35 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006325/0.1226, allocations: 358.8 kB / 0.7064 GB, free: 25.99 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000654/0.1233, allocations: 93.84 kB / 0.7065 GB, free: 25.89 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002135/0.1255, allocations: 1.412 MB / 0.7079 GB, free: 24.45 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.1258, allocations: 0.8979 MB / 0.7088 GB, free: 23.53 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004415/0.1263, allocations: 100.1 kB / 0.7089 GB, free: 23.43 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.1265, allocations: 39.44 kB / 0.7089 GB, free: 23.39 MB / 442.7 MB Notification: Performance of SimCode: time 2.133e-06/0.1265, allocations: 0 / 0.7089 GB, free: 23.39 MB / 442.7 MB Notification: Performance of Templates: time 0.01441/0.1409, allocations: 6.903 MB / 0.7156 GB, free: 16.49 MB / 442.7 MB