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.002615/0.002619, allocations: 359 kB / 17.21 MB, free: 4.926 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.731/3.731, allocations: 388.9 MB / 406.8 MB, free: 11.97 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.003554/0.003554, allocations: 241.6 kB / 452.3 MB, free: 14.57 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.7288/0.7288, allocations: 76.01 MB / 0.56 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006785/0.0006787, allocations: 16 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1151, allocations: 53.23 MB / 0.6742 GB, free: 60.82 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.006705/0.1219, allocations: 5.347 MB / 0.6794 GB, free: 55.44 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.005109/0.1271, allocations: 2.561 MB / 0.682 GB, free: 52.88 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000737/0.1279, allocations: 35.81 kB / 0.682 GB, free: 52.84 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004747/0.1284, allocations: 103.1 kB / 0.6821 GB, free: 52.74 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001425/0.1298, allocations: 413.6 kB / 0.6825 GB, free: 52.33 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001305/0.1311, allocations: 339.2 kB / 0.6828 GB, free: 52 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001295/0.1324, allocations: 1.037 MB / 0.6838 GB, free: 50.96 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001209/0.1337, allocations: 0.621 MB / 0.6844 GB, free: 50.3 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005609/0.1342, allocations: 310.5 kB / 0.6847 GB, free: 50 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005597/0.1348, allocations: 354.5 kB / 0.6851 GB, free: 49.65 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 7.651e-05/0.1349, allocations: 27.94 kB / 0.6851 GB, free: 49.62 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007244/0.1356, allocations: 255.3 kB / 0.6853 GB, free: 49.37 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001934/0.1358, allocations: 175.4 kB / 0.6855 GB, free: 49.2 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.136, allocations: 145.3 kB / 0.6856 GB, free: 49.05 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000932/0.137, allocations: 0.752 MB / 0.6864 GB, free: 48.3 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.137, allocations: 0 / 0.6864 GB, free: 48.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.137, allocations: 0 / 0.6864 GB, free: 48.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.611e-05/0.137, allocations: 0 / 0.6864 GB, free: 48.3 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.002537/0.1396, allocations: 0.9693 MB / 0.6873 GB, free: 47.27 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.1396, allocations: 8.031 kB / 0.6873 GB, free: 47.26 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001812/0.1414, allocations: 190.9 kB / 0.6875 GB, free: 47.07 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.1427, allocations: 0.5044 MB / 0.688 GB, free: 46.53 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.689e-05/0.1427, allocations: 45.3 kB / 0.688 GB, free: 46.48 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.1429, allocations: 52 kB / 0.6881 GB, free: 46.43 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001903/0.1448, allocations: 0.7646 MB / 0.6888 GB, free: 45.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.519e-05/0.1449, allocations: 3.984 kB / 0.6888 GB, free: 45.64 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-05/0.1449, allocations: 20 kB / 0.6889 GB, free: 45.62 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.217e-05/0.145, allocations: 37.3 kB / 0.6889 GB, free: 45.58 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002243/0.1473, allocations: 0.7389 MB / 0.6896 GB, free: 44.84 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005362/0.1527, allocations: 2.704 MB / 0.6923 GB, free: 42.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002101/0.1548, allocations: 0.6086 MB / 0.6928 GB, free: 41.39 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/0.1559, allocations: 366.8 kB / 0.6932 GB, free: 41.03 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.916e-05/0.156, allocations: 12.38 kB / 0.6932 GB, free: 41.02 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001124/0.1571, allocations: 429.9 kB / 0.6936 GB, free: 40.58 MB / 442.7 MB Notification: Performance of pre-optimization done (n=55): time 3.266e-06/0.1571, allocations: 0 / 0.6936 GB, free: 40.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=57): time 0.006347/0.1635, allocations: 2.159 MB / 0.6957 GB, free: 38.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.1636, allocations: 115.4 kB / 0.6958 GB, free: 38.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000848/0.1644, allocations: 437.9 kB / 0.6963 GB, free: 37.77 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.135e-05/0.1645, allocations: 37.7 kB / 0.6963 GB, free: 37.72 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002138/0.1647, allocations: 296.5 kB / 0.6966 GB, free: 37.43 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/0.1649, allocations: 197.2 kB / 0.6968 GB, free: 37.23 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.067e-05/0.165, allocations: 16.03 kB / 0.6968 GB, free: 37.22 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.1651, allocations: 370.7 kB / 0.6971 GB, free: 36.85 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000957/0.1661, allocations: 289 kB / 0.6974 GB, free: 36.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.1671, allocations: 396.8 kB / 0.6978 GB, free: 36.14 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/0.1681, allocations: 363.7 kB / 0.6981 GB, free: 35.78 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.1682, allocations: 4 kB / 0.6981 GB, free: 35.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003344/0.1715, allocations: 1.021 MB / 0.6991 GB, free: 34.74 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.438e-05/0.1716, allocations: 185.7 kB / 0.6993 GB, free: 34.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.547e-06/0.1717, allocations: 4 kB / 0.6993 GB, free: 34.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/0.1727, allocations: 205.5 kB / 0.6995 GB, free: 34.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009205/0.1736, allocations: 119.8 kB / 0.6996 GB, free: 34.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005428/0.1791, allocations: 3.756 MB / 0.7033 GB, free: 30.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009734/0.1801, allocations: 67.91 kB / 0.7034 GB, free: 30.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.391e-05/0.1802, allocations: 23.98 kB / 0.7034 GB, free: 30.07 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.1802, allocations: 4 kB / 0.7034 GB, free: 30.06 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002659/0.1829, allocations: 0.8595 MB / 0.7042 GB, free: 29.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1829, allocations: 0 / 0.7042 GB, free: 29.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007667/0.1837, allocations: 165.8 kB / 0.7044 GB, free: 29.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009285/0.1846, allocations: 123.8 kB / 0.7045 GB, free: 28.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004126/0.1888, allocations: 3.525 MB / 0.7079 GB, free: 25.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009596/0.1898, allocations: 67.86 kB / 0.708 GB, free: 25.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.1899, allocations: 27.92 kB / 0.708 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.0004453/0.1904, allocations: 295.4 kB / 0.7083 GB, free: 24.72 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.1905, allocations: 59.28 kB / 0.7084 GB, free: 24.66 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002592/0.1931, allocations: 0.8343 MB / 0.7092 GB, free: 23.82 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.1931, allocations: 7.922 kB / 0.7092 GB, free: 23.81 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.1932, allocations: 4 kB / 0.7092 GB, free: 23.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003457/0.1935, allocations: 188.2 kB / 0.7094 GB, free: 23.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.1936, allocations: 15.98 kB / 0.7094 GB, free: 23.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008119/0.1945, allocations: 59.94 kB / 0.7094 GB, free: 23.53 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.1946, allocations: 52.48 kB / 0.7095 GB, free: 23.48 MB / 442.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003263/0.1979, allocations: 1.023 MB / 0.7105 GB, free: 22.44 MB / 442.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003203/0.2011, allocations: 1.365 MB / 0.7118 GB, free: 21.05 MB / 442.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009856/0.2021, allocations: 344.3 kB / 0.7122 GB, free: 20.72 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006714/0.2028, allocations: 319.1 kB / 0.7125 GB, free: 20.41 MB / 442.7 MB Notification: Performance of Backend: time 8.22e-07/0.2028, allocations: 0 / 0.7125 GB, free: 20.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004147/0.207, allocations: 1.631 MB / 0.7141 GB, free: 18.7 MB / 442.7 MB Notification: Performance of SimCode: time 0.002877/0.2099, allocations: 2.007 MB / 0.716 GB, free: 16.64 MB / 442.7 MB Notification: Performance of Templates: time 0.02855/0.2385, allocations: 12.37 MB / 0.7281 GB, free: 4.254 MB / 442.7 MB