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.002533/0.002533, allocations: 359.5 kB / 17.21 MB, free: 4.93 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.712/3.712, allocations: 388.9 MB / 406.8 MB, free: 12 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.003575/0.003575, allocations: 231.8 kB / 452.2 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.7301/0.7301, allocations: 76.01 MB / 0.56 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004546/0.0004549, allocations: 15.98 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08766/0.08814, allocations: 53.23 MB / 0.6742 GB, free: 60.81 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.006046/0.09424, allocations: 4.722 MB / 0.6788 GB, free: 56.06 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.004061/0.09836, allocations: 2.079 MB / 0.6809 GB, free: 53.98 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006037/0.09902, allocations: 27.88 kB / 0.6809 GB, free: 53.95 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004223/0.09945, allocations: 79.27 kB / 0.681 GB, free: 53.88 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001042/0.1005, allocations: 310.1 kB / 0.6813 GB, free: 53.57 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.1016, allocations: 291.3 kB / 0.6815 GB, free: 53.29 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001107/0.1027, allocations: 0.8344 MB / 0.6824 GB, free: 52.45 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009954/0.1038, allocations: 0.5351 MB / 0.6829 GB, free: 51.87 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004382/0.1042, allocations: 258.7 kB / 0.6831 GB, free: 51.62 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004419/0.1047, allocations: 282.7 kB / 0.6834 GB, free: 51.34 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 6.744e-05/0.1047, allocations: 24 kB / 0.6834 GB, free: 51.32 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004745/0.1052, allocations: 159.5 kB / 0.6836 GB, free: 51.16 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.1054, allocations: 127.5 kB / 0.6837 GB, free: 51.04 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.1055, allocations: 129.4 kB / 0.6838 GB, free: 50.9 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007392/0.1063, allocations: 0.6468 MB / 0.6844 GB, free: 50.25 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1063, allocations: 0 / 0.6844 GB, free: 50.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1063, allocations: 0 / 0.6844 GB, free: 50.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.1063, allocations: 0 / 0.6844 GB, free: 50.25 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.002377/0.1087, allocations: 0.902 MB / 0.6853 GB, free: 49.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.1088, allocations: 8.031 kB / 0.6853 GB, free: 49.29 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001225/0.11, allocations: 151.1 kB / 0.6855 GB, free: 49.14 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001084/0.1111, allocations: 476.7 kB / 0.6859 GB, free: 48.63 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.867e-05/0.1112, allocations: 40.98 kB / 0.686 GB, free: 48.59 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.1113, allocations: 51.91 kB / 0.686 GB, free: 48.54 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00165/0.1129, allocations: 0.6553 MB / 0.6867 GB, free: 47.86 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.868e-05/0.113, allocations: 0 / 0.6867 GB, free: 47.86 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.462e-05/0.1131, allocations: 20 kB / 0.6867 GB, free: 47.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.773e-05/0.1131, allocations: 25 kB / 0.6867 GB, free: 47.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.1151, allocations: 0.6167 MB / 0.6873 GB, free: 47.2 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004452/0.1196, allocations: 2.465 MB / 0.6897 GB, free: 44.6 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001976/0.1216, allocations: 0.6308 MB / 0.6903 GB, free: 43.93 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007595/0.1224, allocations: 221.6 kB / 0.6905 GB, free: 43.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.538e-05/0.1225, allocations: 4 kB / 0.6905 GB, free: 43.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009392/0.1234, allocations: 308.7 kB / 0.6908 GB, free: 43.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 4.188e-06/0.1234, allocations: 3.984 kB / 0.6908 GB, free: 43.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.002784/0.1262, allocations: 0.7883 MB / 0.6916 GB, free: 42.57 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.1263, allocations: 132.5 kB / 0.6917 GB, free: 42.41 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008987/0.1272, allocations: 461.8 kB / 0.6922 GB, free: 41.94 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.426e-05/0.1273, allocations: 41.73 kB / 0.6922 GB, free: 41.89 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002207/0.1275, allocations: 284.2 kB / 0.6925 GB, free: 41.61 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.1277, allocations: 138 kB / 0.6926 GB, free: 41.48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.572e-05/0.1277, allocations: 8 kB / 0.6926 GB, free: 41.47 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.94e-05/0.1278, allocations: 362.8 kB / 0.693 GB, free: 41.11 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007311/0.1286, allocations: 197 kB / 0.6932 GB, free: 40.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007902/0.1294, allocations: 305.5 kB / 0.6935 GB, free: 40.57 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008037/0.1302, allocations: 253.5 kB / 0.6937 GB, free: 40.32 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.1302, allocations: 4 kB / 0.6937 GB, free: 40.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002747/0.133, allocations: 0.7839 MB / 0.6945 GB, free: 39.51 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/0.1331, allocations: 205.2 kB / 0.6947 GB, free: 39.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.1332, allocations: 4 kB / 0.6947 GB, free: 39.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007972/0.134, allocations: 156.8 kB / 0.6948 GB, free: 39.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006738/0.1347, allocations: 91.81 kB / 0.6949 GB, free: 39.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00414/0.1388, allocations: 2.386 MB / 0.6972 GB, free: 36.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008538/0.1397, allocations: 95.42 kB / 0.6973 GB, free: 36.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.497e-05/0.1398, allocations: 20 kB / 0.6973 GB, free: 36.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/0.1398, allocations: 4 kB / 0.6973 GB, free: 36.38 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001976/0.1418, allocations: 0.6151 MB / 0.6979 GB, free: 35.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.1418, allocations: 4 kB / 0.698 GB, free: 35.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005238/0.1424, allocations: 108.8 kB / 0.6981 GB, free: 35.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006789/0.1431, allocations: 95.81 kB / 0.6981 GB, free: 35.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002756/0.1458, allocations: 2.16 MB / 0.7003 GB, free: 33.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007997/0.1467, allocations: 75.5 kB / 0.7003 GB, free: 33.17 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.305e-05/0.1468, allocations: 16 kB / 0.7003 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.0003858/0.1472, allocations: 293.7 kB / 0.7006 GB, free: 32.86 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.1473, allocations: 51.42 kB / 0.7007 GB, free: 32.81 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001846/0.1491, allocations: 0.5339 MB / 0.7012 GB, free: 32.26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.1492, allocations: 7.984 kB / 0.7012 GB, free: 32.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.1492, allocations: 4 kB / 0.7012 GB, free: 32.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/0.1495, allocations: 160.4 kB / 0.7014 GB, free: 32.07 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.1496, allocations: 8 kB / 0.7014 GB, free: 32.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006707/0.1503, allocations: 51.94 kB / 0.7014 GB, free: 32.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.1504, allocations: 35.95 kB / 0.7014 GB, free: 31.98 MB / 442.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002494/0.1529, allocations: 0.8123 MB / 0.7022 GB, free: 31.16 MB / 442.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002533/0.1555, allocations: 1.079 MB / 0.7033 GB, free: 30.05 MB / 442.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007695/0.1563, allocations: 232.5 kB / 0.7035 GB, free: 29.83 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007287/0.157, allocations: 335.1 kB / 0.7038 GB, free: 29.51 MB / 442.7 MB Notification: Performance of Backend: time 5.41e-07/0.157, allocations: 0 / 0.7038 GB, free: 29.51 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00321/0.1603, allocations: 1.105 MB / 0.7049 GB, free: 28.35 MB / 442.7 MB Notification: Performance of SimCode: time 0.002948/0.1632, allocations: 1.822 MB / 0.7067 GB, free: 26.47 MB / 442.7 MB Notification: Performance of Templates: time 0.02303/0.1863, allocations: 9.423 MB / 0.7159 GB, free: 17.05 MB / 442.7 MB